Code

Added html and documentation when calling update-gosa
[gosa.git] / gosa-core / debian / gosa.postrm
1 #! /bin/sh
2 # postrm script for GOsa
3 #
5 set -e
7 case "$1" in
8   purge|remove)
10         # Pure here
11         if [ "$1" = "purge" ] ; then
12           if [ -d /var/spool/gosa ] ; then
13             echo "Removing /var/spool/gosa as requested."
14             rm -Rf /var/spool/gosa
15           fi
16         fi
18         # Remove GOsa include
19         [ -L /etc/apache2/conf.d/gosa.conf ] && rm -f /etc/apache2/conf.d/gosa.conf
22         # Restart servers
23         if [ -x /usr/sbin/invoke-rc.d ]; then
24             invoke-rc.d apache2 restart
25         else
26             /etc/init.d/apache2 restart
27         fi
29         ;;
31   upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
32         ;;
34   *)
35         echo "postrm called with unknown argument \`$1'" >&2
36         exit 0
37         ;;
38 esac
40 #DEBHELPER#
42 exit 0