Changeset 1227


Ignore:
Timestamp:
08/31/05 15:55:36 (8 years ago)
Author:
darcs
Message:

alternc-mailman: changeset Clean menu and config file on remove, not purge
Database is still removed on purge. This is dangerous, the correct way
would be to ask confirmation with debconf, like does the exim4-base
package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/postrm

    r1219 r1227  
    1313} 
    1414 
    15 if [ "$1" = "purge" ]  
    16 then 
     15case "$1" in 
     16  remove) 
    1717    unconfigure /etc/apache/httpd.conf 
    1818    unconfigure /etc/apache-ssl/httpd.conf 
    1919    unconfigure /usr/share/alternc/install/etc/apache/httpd.conf 
    2020    unconfigure /usr/share/alternc/install/etc/apache-ssl/httpd.conf 
    21     . /etc/alternc/local.sh 
    22     mysql -f -u"$MYSQL_USER" -p"$MYSQL_PASS" -h"$MYSQL_HOST" "$MYSQL_DATABASE" -e "DROP TABLE IF EXISTS mailman" 
    2321    rm -f /var/alternc/cgi-bin/mailman 
    2422    MENUFILE=/var/alternc/bureau/admin/menulist.txt 
     
    2927        mv -f $MENUFILE.alternc_mailman $MENUFILE 
    3028    fi 
    31 fi 
     29    ;; 
     30  purge) 
     31    . /etc/alternc/local.sh 
     32    mysql -f -u"$MYSQL_USER" -p"$MYSQL_PASS" -h"$MYSQL_HOST" "$MYSQL_DATABASE" -e "DROP TABLE IF EXISTS mailman" 
     33    ;; 
     34esac 
    3235# purge 
    3336 
Note: See TracChangeset for help on using the changeset viewer.