File: postrm

package info (click to toggle)
apache 1.3.0-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,488 kB
  • ctags: 6,702
  • sloc: ansic: 47,562; sh: 3,221; makefile: 1,382; perl: 1,346; cpp: 55
file content (18 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e
if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]
then
    suidunregister -s apache /usr/bin/htpasswd
    suidunregister -s apache /usr/lib/apache/suexec
fi
if [ "$1" = "purge" ]
then
    update-rc.d apache remove >/dev/null
    rm -rf /var/lib/apache
    rm -rf /var/log/apache
    rm -rf /var/run/apache
    rm -rf /var/run/apache_runtime_status
    rm -rf /var/run/apache.status
    rm -rf /var/run/apache.scoreboard
    rm -rf /etc/apache
fi
exit 0