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:
parent
b72100d9a9
commit
e39e03c9e7
@ -10,7 +10,7 @@
|
||||
|
||||
PORTNAME= dovecot
|
||||
PORTVERSION= 2.3.21
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= https://dovecot.org/releases/2.3/
|
||||
|
||||
|
@ -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=="
|
||||
|
Loading…
Reference in New Issue
Block a user