svn commit: r422397 - head/mail/dovecot2/files

Olli Hauer ohauer at FreeBSD.org
Sun Sep 18 16:38:29 UTC 2016


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


More information about the svn-ports-all mailing list