#!/bin/sh # postrm script for wims # # 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 case "$1" in remove|purge) # remove any configuration symlinks for apache 2.2 rm -f /etc/apache*/conf.d/wims.conf rm -rf /var/lib/wims || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) for f in $(dpkg-statoverride --list| grep wims| awk '{print $4}'); do dpkg-statoverride --remove $f; done ;; *) 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. # Automatically added by dh_installdeb/13.31 dpkg-maintscript-helper symlink_to_dir /var/lib/wims/public_html/scripts/js/edit_area /usr/share/javascript/edit-area 4.13c\~dfsg1-2 -- "$@" # End automatically added section # Automatically added by dh_apache2/UNDECLARED if [ "$1" = "purge" ] ; then if true; then if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper for conf in wims ; do apache2_invoke disconf $conf || exit 1 done fi fi fi # End automatically added section exit 0