root/alternc-awstats/tags/nightly_sarge/debian/postrm

Revision 1047, 1.0 kB (checked in by anonymous, 4 years ago)

- correction du password 32 -> 38 caract�res (MD5 arrgg !)
- correction du conf template : allow only authenticated web users
- misc corrections web

  • 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 # Debian alternc-awstats prerm
4 # Benjamin Sonntag <benjamin@alternc.org>
5 # Cette fonction regarde si un fichier de config ($1) a déjà reçu une modif
6 # de config, et si oui, lui enleve les lignes voulues
7 function unconfigure {
8     if grep -qs "\*\*\*AWSTATS\*\*\*" $1
9         then
10         # 1. on déplace le fichier
11         rm -f $1.alternc_awstats
12         cat $1 | grep -v "\*\*\*AWSTATS\*\*\*" | grep -v "Alias /awstats-icon/"  >$1.alternc_awstats
13         mv -f $1.alternc_awstats $1
14     fi
15 }
16
17 case "$1" in
18 remove)
19     ;;
20
21 upgrade)
22     ;;
23
24 purge)
25     # Remove any quota
26     /usr/lib/alternc/quota_delete aws
27     unconfigure /etc/apache/httpd.conf
28     unconfigure /etc/apache-ssl/httpd.conf
29     unconfigure /usr/share/alternc/1.0/install/etc/apache/httpd.conf
30     unconfigure /usr/share/alternc/1.0/install/etc/apache-ssl/httpd.conf
31
32     # Remove the config files
33     rm /etc/webalizer/* -f
34     ;;
35
36 failed-upgrade|abort-install|abort-upgrade|disappear)
37     ;;
38
39 *)
40     echo "postrm called with unknown argument '$1'" >&2
41     exit 1
42     ;;
43 esac
44
45 #DEBHELPER#
46
Note: See TracBrowser for help on using the browser.