X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=fb6e04149c737c661eebeb893060ba14ea1c7043;hb=refs%2Ftags%2Fdebian%2F2%253.4.0-4;hp=83bd72f3f9e9821fb5c4cc9227d3b940823b3fe4;hpb=17963bc962935b6b4f9ecce21a36dfe2506a7afc;p=spamassassin-cn.git diff --git a/debian/postinst b/debian/postinst index 83bd72f..fb6e041 100755 --- a/debian/postinst +++ b/debian/postinst @@ -59,7 +59,7 @@ db_stop || true if [ "$run_as_user" = "non-root" ]; then if ! grep -q '^OPTIONS=".*username=spamd"' \ /etc/default/spamassassin; then - systemctl stop spamassassin + service spamassassin stop rstart=yes fi @@ -87,7 +87,7 @@ if [ "$run_as_user" = "non-root" ]; then elif [ "$run_as_user" = "root" ]; then if grep -q '^OPTIONS=".*username=spamd"' \ /etc/default/spamassassin; then - systemctl stop spamassassin + service spamassassin stop restart=yes fi @@ -400,12 +400,12 @@ echo "CN: SpamAssassin updates are now logged at /var/log/sa-update.log" # restart the spamasassin if [ "x$restart" = "xyes" ]; then pkill -f /usr/sbin/spamd || true - systemctl restart spamassassin + service spamassassin restart fi # restart the amavis if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then - systemctl restart amavis + service amavis restart fi # dh_installdeb will replace this with shell code automatically