debian/postrm
changeset 48 9f66fe44239c
parent 45 377edad75934
child 49 2272c9e2eaf7
--- a/debian/postrm	Wed Nov 30 16:19:44 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-#!/bin/bash
-# postrm script for ha-sync
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postrm> `remove'
-#        * <postrm> `purge'
-#        * <old-postrm> `upgrade' <new-version>
-#        * <new-postrm> `failed-upgrade' <old-version>
-#        * <new-postrm> `abort-install'
-#        * <new-postrm> `abort-install' <old-version>
-#        * <new-postrm> `abort-upgrade' <old-version>
-#        * <disappearer's-postrm> `disappear' <overwriter>
-#          <overwriter-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-
-    purge)
-    	{
-    	rm -f /etc/ha-sync/id_rsa{,.pub}
-	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)
-        {
-	update-rc.d ha-hostname remove >/dev/null
-	update-rc.d ha-config remove >/dev/null
-        } >&2
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-# #DEBHELPER#
-
-exit 0
-
-