izmjene za stretch
[amavisd-cn.git] / debian / postinst
index 01c8da1..ddf4581 100755 (executable)
@@ -114,14 +114,8 @@ if [ -n "$chown_ahome" ]; then
 fi
 
 restart_daemon="1"
-if [ "$restart_daemon" -a -x /etc/init.d/amavis ]; then
-  if [ -x "/etc/init.d/amavis" ]; then
-    if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-      invoke-rc.d amavis restart
-    else
-      /etc/init.d/amavis restart
-    fi
-  fi
+if [ "$restart_daemon" ]; then
+  service amavis restart
 fi
 # always check that the daemons are running