44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# * 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
|
||
|
|
||
|
case "$1" in
|
||
|
purge)
|
||
|
rm -f /etc/alternc/local.sh
|
||
|
rm -f /var/backups/alternc/etc-installed.tar.gz
|
||
|
# Purge database?
|
||
|
#rm -rf /var/alternc/db
|
||
|
# Purge datafiles?
|
||
|
#rm -rf /var/alternc/dns
|
||
|
#rm -rf /var/alternc/html
|
||
|
rm -rf /var/alternc/apacheconf
|
||
|
;;
|
||
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
|
||
|
rm -f /etc/apache/conf.d/override.php.conf /etc/apache/conf.d/alternc-ssl.conf /etc/apache/conf.d/alternc.conf
|
||
|
;;
|
||
|
disappear)
|
||
|
;;
|
||
|
*)
|
||
|
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
|
||
|
|
||
|
# vim: et sw=4
|