r1: [svn-inject] Installing original source of phpbb2-cn
[phpbb2-cn.git] / debian / postrm
1 #!/bin/sh
2
3 set -e
4
5 [ "$1" = "purge" ] || exit 0
6
7 if [ /etc/apache2/conf.d/phpbb2-cn.conf ]; then
8   rm -f /etc/apache2/conf.d/phpbb2-cn.conf
9   restart_apache2="yes"
10 fi
11
12 if [ "$restart_apache2" = "yes" ]; then
13   if [ -x /usr/sbin/invoke-rc.d ]; then
14     [ -x /etc/init.d/apache2 ] && invoke-rc.d apache2 restart
15   else
16     [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 restart
17  fi
18 fi