X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=debian%2Fkoha.postrm;h=39929859a38716af4ce3a89c16944d8ef8f524bb;hb=HEAD;hp=60ba704f476ef04e94da9645113cce56edd570fd;hpb=97232eee15eb760be129d64c3afd691ad5d24503;p=koha.git diff --git a/debian/koha.postrm b/debian/koha.postrm index 60ba704f47..39929859a3 100644 --- a/debian/koha.postrm +++ b/debian/koha.postrm @@ -10,12 +10,14 @@ if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then dbc_go koha $@ fi -#if [ "$1" = "purge" ]; then -# rm -f /etc/db-test-mysql/debian-db.php -# if which ucf >/dev/null 2>&1; then -# ucf --purge /etc/db-test-mysql/debian-db.php -# ucfr --purge db-test-mysql /etc/db-test-mysql/debian-db.php -# fi -#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#