debian/postrm
changeset 37 1cdaa46b79c5
parent 1 b36b9eee9c41
child 38 5c262b6a659d
--- a/debian/postrm	Wed Nov 30 10:48:57 2011 +0100
+++ b/debian/postrm	Wed Nov 30 11:32:20 2011 +0100
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # postrm script for ha-sync
 #
 # see: dh_installdeb(1)
@@ -24,8 +24,6 @@
     purge)
     	{
     	rm -f /etc/ha-sync/id_rsa{,.pub}
-	update-rc.d ha-hostname remove || true
-	update-rc.d ha-sync remove || true
 	for p in /etc/ha-sync/{ha-sync.conf,exclude}; do
 		ucf --purge $p; rm -f $p $p.ucf-*
 		ucf --purge $p; rm -f $p $p.ucf-*
@@ -34,6 +32,10 @@
 	;;
 
     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        {
+	insserv -r ha-hostname
+	insserv -r ha-config
+        } >&2
     ;;
 
     *)