source:
alternc-slavedns/trunk/debian/postrm
@
3165
| Revision 3165, 493 bytes checked in by anarcat, 13 months ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Benjamin Sonntag <benjamin@alternc.org> |
| 6 | |
| 7 | case "$1" in |
| 8 | remove) |
| 9 | ;; |
| 10 | |
| 11 | upgrade) |
| 12 | ;; |
| 13 | |
| 14 | purge) |
| 15 | # Remove the config file from named.conf |
| 16 | cat /etc/bind/named.conf | grep -v "include \"/etc/bind/slavedns.conf\";" >/etc/bind/named.conf.purging |
| 17 | mv -f /etc/bind/named.conf.purging /etc/bind/named.conf |
| 18 | ;; |
| 19 | |
| 20 | failed-upgrade|abort-install|abort-upgrade|disappear) |
| 21 | ;; |
| 22 | |
| 23 | *) |
| 24 | echo "postrm called with unknown argument '$1'" >&2 |
| 25 | exit 1 |
| 26 | ;; |
| 27 | esac |
| 28 | |
| 29 | #DEBHELPER# |
Note: See TracBrowser
for help on using the repository browser.
