1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

mail/dovecot: remove extra call to doveconf in rc.d script

PR:	279867
Reported by: Siva Mahadevan <me@svmhdvn.name>
This commit is contained in:
Larry Rosenman 2024-06-24 12:05:31 -05:00
parent b72100d9a9
commit e39e03c9e7
No known key found for this signature in database
GPG Key ID: 697C99B1AB48A77D
2 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@
PORTNAME= dovecot
PORTVERSION= 2.3.21
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= https://dovecot.org/releases/2.3/

View File

@ -58,15 +58,15 @@ for config in ${dovecot_config}; do
required_files="${config}"
command_args="-c ${config}"
if [ -s ${config} ]; then
${command} ${command_args} -a 2>&1 >/dev/null
if [ $? -ne 0 ]; then
echo "==Error=="
echo "Configuration file check failed."
# Use dovecot to print the config error.
${command} ${command_args} -a
exit $?
fi
base_dir=$(${command} ${command_args} -a 2>/dev/null | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
doveconf_settings="$(${command} ${command_args} -a 2>/dev/null)"
if [ $? -ne 0 ]; then
echo "==Error=="
echo "Configuration file check failed."
# Use dovecot to print the config error.
${command} ${command_args} -a
exit $?
fi
base_dir="$(echo "$doveconf_settings" | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')"
pidfile="${base_dir}/master.pid"
else
echo "==Error=="