Fix a leftover in rcfile, make more robust.

Make things more robust such that options in mailman_flags don't kill
the start.
This commit is contained in:
Matthias Andree 2015-12-30 15:00:35 +00:00
parent a87f73baf8
commit 4d4e2f35e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404860
2 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= mailman
DISTVERSION= 2.1.20
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= GNU \
SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \

View file

@ -20,15 +20,17 @@
name="mailman"
rcvar="mailman_enable"
required_dirs="%%MAILMANDIR%%/lists/mailman"
command_interpreter="%%PYTHON_CMD%%"
command="%%MAILMANDIR%%/bin/mailmanctl"
command_args="-s -q start"
command_args="start"
pidfile="%%MAILMANDIR%%/data/master-qrunner.pid"
load_rc_config $name
: ${mailman_enable="NO"}
: ${mailman_fix_perms="YES"}
: ${mailman_enable:="NO"}
: ${mailman_fix_perms:="YES"}
: ${mailman_flags:="-s -q"}
start_precmd=${name}_prestart
extra_commands="reload status"
@ -36,7 +38,7 @@ extra_commands="reload status"
mailman_prestart() {
if checkyesno mailman_fix_perms ; then
check_startmsgs && echo "Fixing ${name} permissions:"
env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f $arg ${rc_debug:+-v}
env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f ${rc_debug:+-v}
fi
}