aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorohauer <ohauer@FreeBSD.org>2016-09-19 00:38:28 +0800
committerohauer <ohauer@FreeBSD.org>2016-09-19 00:38:28 +0800
commit4b62fdaba091c1a101f4ab44d95118ec368e4700 (patch)
treef154b4fdc3dae3d5910de4c802281e7ebcc087ce /mail
parentb09f72a657f34ebfed89e5fa0ea36b04064c30bf (diff)
downloadfreebsd-ports-gnome-4b62fdaba091c1a101f4ab44d95118ec368e4700.tar.gz
freebsd-ports-gnome-4b62fdaba091c1a101f4ab44d95118ec368e4700.tar.zst
freebsd-ports-gnome-4b62fdaba091c1a101f4ab44d95118ec368e4700.zip
- test config file with param '-s' instead '-f'
PR: 212788 Submitted by: ohauer Reviewed by: adamw Approved by: adamw (maintainer)
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot2/files/dovecot.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/dovecot2/files/dovecot.in b/mail/dovecot2/files/dovecot.in
index 76df0092a0fc..7a7ce56644e8 100644
--- a/mail/dovecot2/files/dovecot.in
+++ b/mail/dovecot2/files/dovecot.in
@@ -61,7 +61,7 @@ restart_cmd()
for config in ${dovecot_config}; do
required_files="${config}"
command_args="-c ${config}"
- if [ -f ${config} ]; then
+ if [ -s ${config} ]; then
base_dir=$(${command} ${command_args} -a | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
pidfile="${base_dir}/master.pid"
else