From c09437d3ed72ce2ef77e08658aec4ab912ba178b Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Tue, 4 Oct 2016 15:06:38 +0200 Subject: [PATCH] cisti stari init.d --- debian/changelog | 7 +++++++ debian/preinst | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- 1.7.10.4