Remove generated /etc/koha/koha-conf.xml when package is purged.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
24f7a68259
commit
13e829e8b2
1 changed files with 7 additions and 7 deletions
14
debian/koha.postrm
vendored
14
debian/koha.postrm
vendored
|
@ -10,12 +10,12 @@ 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
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
|
Loading…
Reference in a new issue