|
Revision 1063, 1.0 kB
(checked in by anonymous, 4 years ago)
|
This commit was manufactured by cvs2svn to create tag 'REL_0_3'.
|
- 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 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
function unconfigure { |
|---|
| 8 |
if grep -qs "\*\*\*AWSTATS\*\*\*" $1 |
|---|
| 9 |
then |
|---|
| 10 |
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 46 |
|
|---|