From: Ivan Rako Date: Tue, 4 Apr 2017 14:46:59 +0000 (+0200) Subject: koristi se service umjesto systemctl u postinstu X-Git-Tag: debian/2%3.4.0-3~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=7e9107b7fa1a92e21a0a45e5133860f5a909064d;p=spamassassin-cn.git koristi se service umjesto systemctl u postinstu --- diff --git a/debian/changelog b/debian/changelog index 1b49f82..e4517a5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +spamassassin-cn (2:3.4.0-3) stable; urgency=low + + * Koristi se service umjesto systemctl u postinstu + + -- Ivan Rako Tue, 04 Apr 2017 16:46:38 +0200 + spamassassin-cn (2:3.4.0-2) stable; urgency=low * Ispravke za systemd 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