Debian Codegraph @

debian/postrm

raw
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6 purge)
7 # remove the user database
8 rm -f /var/spool/jabber-muc/rooms/*
9 # the application should remove these on exit
10 rm -f /var/run/jabberd2/muc.pid
11 # need better way of detecting whether these exist or not
12 rm -f /var/log/jabberd2/mu-conference.log*
13 # remove any empty directories
14 for DIR in /var/spool/jabber-muc/rooms /var/spool/jabber-muc \
15 /etc/jabberd2/component.d /etc/jabberd2 \
16 /var/run/jabberd2 /var/log/jabberd2; do
17 if [ -d ${DIR} ]; then
18 #rmdir -p --ignore-fail-on-non-empty ${DIR} > /dev/null 2>&1
19 rmdir --ignore-fail-on-non-empty ${DIR} > /dev/null 2>&1
20 fi
21 done
22 ;;
23 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
24 ;;
25
26 *)
27 echo "postrm called with unknown argument \`$1'" >&2
28 exit 1
29 ;;
30 esac
31
32 #DEBHELPER#
33
34 exit 0