equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 # postrm script for ha-config |
2 # postrm script for ha-sync |
3 # |
3 # |
4 # see: dh_installdeb(1) |
4 # see: dh_installdeb(1) |
5 |
5 |
6 set -e |
6 set -e |
7 |
7 |
20 |
20 |
21 |
21 |
22 case "$1" in |
22 case "$1" in |
23 |
23 |
24 purge) |
24 purge) |
|
25 { |
25 rm -f /etc/ha-sync/id_rsa{,.pub} |
26 rm -f /etc/ha-sync/id_rsa{,.pub} |
26 update-rc.d ha-hostname remove || true |
27 update-rc.d ha-hostname remove || true |
27 update-rc.d ha-config remove || true |
28 update-rc.d ha-sync remove || true |
|
29 for p in /etc/ha-sync/{ha-sync.conf,exclude}; do |
|
30 ucf --purge $p; rm -f $p $p.ucf-* |
|
31 ucf --purge $p; rm -f $p $p.ucf-* |
|
32 done |
|
33 } >&2 |
28 ;; |
34 ;; |
29 |
35 |
30 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
36 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
31 ;; |
37 ;; |
32 |
38 |
37 esac |
43 esac |
38 |
44 |
39 # dh_installdeb will replace this with shell code automatically |
45 # dh_installdeb will replace this with shell code automatically |
40 # generated by other debhelper scripts. |
46 # generated by other debhelper scripts. |
41 |
47 |
42 #DEBHELPER# |
48 # #DEBHELPER# |
43 |
49 |
44 exit 0 |
50 exit 0 |
45 |
51 |
46 |
52 |