From: Ivan Rako Date: Tue, 4 Oct 2016 13:06:38 +0000 (+0200) Subject: cisti stari init.d X-Git-Tag: debian/3%2.10.1_cn1^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=c09437d3ed72ce2ef77e08658aec4ab912ba178b;p=amavisd-cn.git cisti stari init.d --- diff --git a/debian/changelog b/debian/changelog index 20fa10b..eb68c03 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +amavisd-cn (3:2.10.1~cn1) stable; urgency=low + + * Cisti staru skriptu za pokretanje /etc/init.d/amavisd-cn i softlink + /etc/init.d/amavis + + -- Ivan Rako Tue, 04 Oct 2016 15:05:58 +0200 + amavisd-cn (3:2.10.1~cn0) stable; urgency=low * Prva verzija za jessie diff --git a/debian/preinst b/debian/preinst index 2e1f55a..d0cc6e3 100755 --- a/debian/preinst +++ b/debian/preinst @@ -14,8 +14,13 @@ set -e # the debian-policy package if [ "$1" = install -o "$1" = upgrade ]; then - if [ -L /etc/init.d/amavis -a -f /etc/init.d/amavis.amavisd-new ]; then + if [ -f /etc/init.d/amavisd-cn ]; then + rm -f /etc/init.d/amavisd-cn + fi + if [ -L /etc/init.d/amavis ]; then rm -f /etc/init.d/amavis + fi + if [ -f /etc/init.d/amavis.amavisd-new ]; then dpkg-divert --quiet --package amavisd-cn --remove --rename \ --divert /etc/init.d/amavis.amavisd-new /etc/init.d/amavis || true update-rc.d amavis defaults 19 21 >/dev/null || true