X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=a44740182ec94307d606493c5723e6b9baa798cb;hb=65b0443e21141dfbc0e3523ad8c69ba7fc5af06a;hp=0000000000000000000000000000000000000000;hpb=b668a392de1229c0c4598597ad0c71ac82e13782;p=webalizer-cn.git diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..a447401 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,37 @@ +#!/bin/sh + +set -e + +PKG="webalizer-cn" + +if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then + . /usr/share/apache2/apache2-maintscript-helper + + webalizer_enable() { + echo "CN: Purging $PKG configuration for Apache2." + return 0 + } +else + echo "CN: Could not load Apache 2.4 maintainer script helper." + + webalizer_enable() { + return 1 + } +fi + +webalizer_error() { + echo "CN: Error while trying to purge $PKG configuration for Apache2." +} + +if [ "$1" = "abort-install" ] || [ "$1" = "abort-upgrade" ]; then + conffile=/etc/apache2/conf.d/$PKG.conf + + if [ -e "$conffile.dpkg-remove" ]; then + echo "CN: Reinstalling $conffile that was moved away." + mv "$conffile.dpkg-remove" "$conffile" + fi +fi + +#DEBHELPER# + +exit 0