#!/bin/sh # postrm script for webalizer # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi case "$1" in purge) # Remco vd Meent Jul 18, 1999 # Script is being used to remove /etc/webalizer.conf [ -f "/etc/webalizer.conf" ] && rm -f /etc/webalizer.conf; [ -d "/etc/webalizer/" ] && rm -rf /etc/webalizer/; [ -d "/var/www/webalizer" ] && rm -rf /var/www/webalizer; ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|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