| Revision 2189,
748 bytes
checked in by anarcat, 5 years ago
(diff) |
|
use the new my.cnf configuration from 0.9.8
|
-
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/my.cnf" |
|---|
| 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 --defaults-file=/etc/alternc/my.cnf -e "DROP TABLE IF EXISTS mailman" |
|---|
| 22 | fi |
|---|
| 23 | ;; |
|---|
| 24 | esac |
|---|
| 25 | |
|---|
| 26 | # dh_installdeb will replace this with shell code automatically |
|---|
| 27 | # generated by other debhelper scripts. |
|---|
| 28 | #DEBHELPER# |
|---|
Note: See
TracBrowser
for help on using the repository browser.