root/alternc-mailman/tags/1.5/debian/postrm

Revision 1773, 0.8 kB (checked in by anarcat, 2 years ago)

add an apache configuration for alternc-mailman instead of hacking the httpd.conf. we now use the standard images/mailman and pipermail aliases for mailman (/pipermail and /images/mailman)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh -e
2
3 CONFIGFILE="/etc/alternc/local.sh"
4 MENUFILE="/etc/alternc/menulist.txt"
5
6 case "$1" in
7   remove)
8     alternc.install
9
10     rm -f /var/alternc/cgi-bin/mailman /etc/apache{,-ssl}/conf.d/alternc-mailman.conf
11
12     if grep -qs "menu_mailman.php" $MENUFILE; then
13         rm -f $MENUFILE.alternc_mailman
14         cat $MENUFILE | grep -v "menu_mailman.php" >$MENUFILE.alternc_mailman
15         mv -f $MENUFILE.alternc_mailman $MENUFILE
16     fi
17     ;;
18   purge)
19     if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
20         . "$CONFIGFILE"
21         mysql -f -u"$MYSQL_USER" -p"$MYSQL_PASS" -h"$MYSQL_HOST" \
22               "$MYSQL_DATABASE" -e "DROP TABLE IF EXISTS mailman"
23     fi
24     ;;
25 esac
26
27 # dh_installdeb will replace this with shell code automatically
28 # generated by other debhelper scripts.
29 #DEBHELPER#
30
Note: See TracBrowser for help on using the browser.