+spamassassin-cn (2:3.4.0-3) stable; urgency=low
+
+ * Koristi se service umjesto systemctl u postinstu
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Tue, 04 Apr 2017 16:46:38 +0200
+
spamassassin-cn (2:3.4.0-2) stable; urgency=low
* Ispravke za systemd
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
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
# 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