Bug 7216 - koha-restore does not correctly set home
[koha.git] / debian / koha.postrm
1 #!/bin/sh
2
3 set -e
4
5 if [ -f /usr/share/debconf/confmodule ]; then
6     . /usr/share/debconf/confmodule
7 fi
8 if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
9     . /usr/share/dbconfig-common/dpkg/postrm.mysql
10     dbc_go koha $@
11 fi
12
13 if [ "$1" = "purge" ]; then
14     configfile="/etc/koha/koha-conf.xml"
15     rm -f "$configfile"
16     if which ucf >/dev/null 2>&1; then
17         ucf --purge "$configfile"
18     fi
19
20     rm -rf /var/log/koha
21 fi
22
23 #DEBHELPER#