Alternc  latest
Alternc logiel libre pour l'hébergement
alternc-awstats.postrm
Go to the documentation of this file.
1 #!/bin/sh -e
2 
3 MENUFILE="/etc/alternc/menulist.txt"
4 
5 case "$1" in
6  remove)
7  # Remove Awstats references from Apache configuration
8  # unconfigure /etc/alternc/templates/apache/httpd.conf
9  # unconfigure /etc/alternc/templates/apache-ssl/httpd.conf
10  alternc.install
11 
12  ;;
13  purge)
14  #/usr/lib/alternc/quota_delete aws
15  if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
16  . "$CONFIGFILE"
17  mysql -f --defaults-file=/etc/alternc/my.cnf \
18  -e "DROP TABLE IF EXISTS aws,aws_users,aws_access;"
19  fi
20  #rm -rf /var/cache/awstats
21  #rm -f /etc/alternc/awstats.htpasswd
22  rm -f /etc/alternc/alterncawstats.conf \
23  /etc/apache-ssl/conf.d/alterncawstats.conf
24 
25  # FIXME : ALTERNC DEPENDS ON APACHE2, APACHE IS NO LONGER REQUIRED
26  # REMOVE THE FOLLOWING LINE TO CLEAN THIS FILE
27 
28  #if [ -x /usr/sbin/apache ]; then
29  # rm -f /etc/apache/conf.d/alterncawstats.conf
30  #fi
31  #if [ -x /usr/sbin/apache2 ]; then
32  rm -f /etc/apache2/conf.d/alterncawstats.conf
33  #fi
34  ;;
35 esac
36 
37 # dh_installdeb will replace this with shell code automatically
38 # generated by other debhelper scripts.
39 #DEBHELPER#