alternc-slave.postrm 1.13 KB
Newer Older
1 2 3 4
#! /bin/sh

set -e

5 6
. /usr/share/debconf/confmodule

7 8 9 10 11 12 13 14 15 16 17
#     * 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)
18
    rm -f /etc/alternc/local.sh /etc/alternc/my.cnf /etc/alternc/bureau.conf
19
    rm -f /var/backups/alternc/etc-installed.tar.gz
20 21 22 23 24

    db_input high alternc/postrm_remove_datafiles || true
    db_go
    db_get alternc/postrm_remove_datafiles || true
    if [ "$RET" = "true" ]; then
25
      rm -rf /var/backups/alternc
26 27
    fi

28
    rm -f /etc/apache/conf.d/override_php.conf /etc/apache/conf.d/alternc-ssl.conf /etc/apache/conf.d/alternc.conf
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    ;;
  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

# vim: et sw=4