debian/postrm
changeset 1 b36b9eee9c41
parent 0 4bc43250587a
child 37 1cdaa46b79c5
--- a/debian/postrm	Fri Nov 17 10:15:27 2006 +0000
+++ b/debian/postrm	Fri Nov 17 21:32:29 2006 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# postrm script for ha-config
+# postrm script for ha-sync
 #
 # see: dh_installdeb(1)
 
@@ -22,9 +22,15 @@
 case "$1" in
 
     purge)
+    	{
     	rm -f /etc/ha-sync/id_rsa{,.pub}
 	update-rc.d ha-hostname remove || true
-	update-rc.d ha-config 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-*
+	done
+	} >&2
 	;;
 
     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
@@ -39,7 +45,7 @@
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
-#DEBHELPER#
+# #DEBHELPER#
 
 exit 0