#! /bin/sh # # prerm script for jwchat # set -e configfile='/etc/jwchat/config.js' apachefile='/etc/apache2/sites-available/jwchat.conf' case "$1" in remove) if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke dissite jwchat fi ;; purge) if [ -x /usr/bin/ucf ] ; then ucf --purge $configfile ucf --purge $apachefile fi rm -f $configfile $apachefile ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installdebconf/13.3.1 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section