cisti stari init.d jessie debian/3%2.10.1_cn1
authorIvan Rako <irako@nekkar.carnet.hr>
Tue, 4 Oct 2016 13:06:38 +0000 (15:06 +0200)
committerIvan Rako <irako@nekkar.carnet.hr>
Tue, 4 Oct 2016 13:06:38 +0000 (15:06 +0200)
debian/changelog
debian/preinst

index 20fa10b..eb68c03 100644 (file)
@@ -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 <Ivan.Rako@CARNet.hr>  Tue, 04 Oct 2016 15:05:58 +0200
+
 amavisd-cn (3:2.10.1~cn0) stable; urgency=low
 
   * Prva verzija za jessie
index 2e1f55a..d0cc6e3 100755 (executable)
@@ -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