Koha/debian/koha.postrm
Lars Wirzenius 1e035ce4ec When purging, remove /var/log/koha.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-04-22 06:15:31 -04:00

23 lines
454 B
Bash

#!/bin/sh
set -e
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
. /usr/share/dbconfig-common/dpkg/postrm.mysql
dbc_go koha $@
fi
if [ "$1" = "purge" ]; then
configfile="/etc/koha/koha-conf.xml"
rm -f "$configfile"
if which ucf >/dev/null 2>&1; then
ucf --purge "$configfile"
fi
rm -rf /var/log/koha
fi
#DEBHELPER#