1 2 3 4
if [ "$1" -eq 1 ]; then subst 's,SPAMDOPTIONS=.*,SPAMDOPTIONS="--socketpath=/var/run/spamd/socket -x -P -L --username=spamd --virtual-config-dir=/var/lib/spamd/.spamassassin",' /etc/sysconfig/spamd fi /usr/sbin/post_service spamd
1 2 3
if [ "$1" -eq 0 ]; then subst 's,SPAMDOPTIONS="--socketpath=/var/run/spamd/socket -x -P -L --username=spamd --virtual-config-dir=/var/lib/spamd/.spamassassin",SPAMDOPTIONS="",' /etc/sysconfig/spamd fi
1
/usr/sbin/useradd -r -g spamd -d /dev/null -s /dev/null -n _filter >/dev/null 2>&1 ||: