X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=spamassassin-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=dae4cb2091f3c86ac8bfba72d80eae85e6e5af33;hp=83bd72f3f9e9821fb5c4cc9227d3b940823b3fe4;hb=7e9107b7fa1a92e21a0a45e5133860f5a909064d;hpb=17963bc962935b6b4f9ecce21a36dfe2506a7afc diff --git a/debian/postinst b/debian/postinst index 83bd72f..dae4cb2 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 stop spamassassin 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 stop spamassassin 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 restart spamassassin fi # restart the amavis if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then - systemctl restart amavis + service restart amavis fi # dh_installdeb will replace this with shell code automatically