summaryrefslogtreecommitdiff
path: root/debian/apache2.2-common.postrm
blob: b6c45d891fd7396f426bc00cca4bcb17b5336d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /bin/sh

set -e

if [ "$1" = purge ] ; then
	rm -f 	/etc/apache2/httpd.conf \
		/etc/apache2/ports.conf \
		/etc/apache2/conf.d/charset \
		/etc/default/apache2 \
		/var/cache/apache2/reload \
		/var/log/apache2/access.log* \
		/var/log/apache2/error.log*
	
	rm -rf 	/var/cache/apache2/proxy \
		/var/cache/apache2/mod_disk_cache \
		/var/run/apache2 \
		/var/lock/apache2

	for f in /etc/apache2/sites-enabled/* \
		 /etc/apache2/mods-enabled/* ; do
		[ -L "$f" ] && rm -f "$f" 
	done
	
	for d in /etc/apache2/sites-enabled/ \
		/etc/apache2/mods-enabled/ \
		/etc/apache2/conf.d \
		/etc/apache2 \
		/var/log/apache2 \
		/var/cache/apache2 ; do
		rmdir $d 2> /dev/null || true
	done

fi

#DEBHELPER#