From: Ivan Rako Date: Thu, 6 Apr 2017 11:20:51 +0000 (+0200) Subject: izmjene u postinstu, kriva sintaksa naredbe service X-Git-Tag: debian/2%3.4.0-3^0 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=9629754b9f93d23de96828eb34bd5e60b6d44bda;p=spamassassin-cn.git izmjene u postinstu, kriva sintaksa naredbe service --- diff --git a/debian/postinst b/debian/postinst index dae4cb2..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 - service 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 - service 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 - service restart spamassassin + service spamassassin restart fi # restart the amavis if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then - service restart amavis + service amavis restart fi # dh_installdeb will replace this with shell code automatically