izmjene u postinstu, kriva sintaksa naredbe service debian/2%3.4.0-3
authorIvan Rako <irako@nekkar.carnet.hr>
Thu, 6 Apr 2017 11:20:51 +0000 (13:20 +0200)
committerIvan Rako <irako@nekkar.carnet.hr>
Thu, 6 Apr 2017 11:20:51 +0000 (13:20 +0200)
debian/postinst

index dae4cb2..fb6e041 100755 (executable)
@@ -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