Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 16:38:28 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422397 - head/mail/dovecot2/files
Message-ID:  <201609181638.u8IGcS5w001363@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sun Sep 18 16:38:28 2016
New Revision: 422397
URL: https://svnweb.freebsd.org/changeset/ports/422397

Log:
  - test config file with param '-s' instead '-f'
  
  PR:		212788
  Submitted by:	ohauer
  Reviewed by:	adamw
  Approved by:	adamw (maintainer)

Modified:
  head/mail/dovecot2/files/dovecot.in

Modified: head/mail/dovecot2/files/dovecot.in
==============================================================================
--- head/mail/dovecot2/files/dovecot.in	Sun Sep 18 16:04:04 2016	(r422396)
+++ head/mail/dovecot2/files/dovecot.in	Sun Sep 18 16:38:28 2016	(r422397)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609181638.u8IGcS5w001363>