From 9629754b9f93d23de96828eb34bd5e60b6d44bda Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Thu, 6 Apr 2017 13:20:51 +0200 Subject: [PATCH] izmjene u postinstu, kriva sintaksa naredbe service --- debian/postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.10.4