root/alternc/trunk/debian/alternc-slave.postrm

Revision 2312, 1.1 kB (checked in by anarcat, 2 months ago)

revert back to r2306: stay with only two packages for now, which should unbreak the main alternc package

  • Property svn:mergeinfo set to
Line 
1 #! /bin/sh
2
3 set -e
4
5 . /usr/share/debconf/confmodule
6
7 #     * postrm remove
8 #     * postrm purge
9 #     * old-postrm upgrade new-version
10 #     * new-postrm failed-upgrade old-version
11 #     * new-postrm abort-install
12 #     * new-postrm abort-install old-version
13 #     * new-postrm abort-upgrade old-version
14 #     * disappearer's-postrm disappear overwriter overwriter-version
15
16 case "$1" in
17   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     db_input high alternc/postrm_remove_datafiles || true
22     db_go
23     db_get alternc/postrm_remove_datafiles || true
24     if [ "$RET" = "true" ]; then
25       rm -rf /var/backups/alternc
26     fi
27
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   remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
31     ;;
32   disappear)
33     ;;
34   *)
35     echo "postrm called with unknown argument \`$1'" >&2
36     exit 1
37     ;;
38 esac
39
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 #DEBHELPER#
44
45 exit 0
46
47 # vim: et sw=4
Note: See TracBrowser for help on using the browser.