Oops, this one should not have been sent. I was clumsy. The mail titled "[PATCH 2/2] Remove generated /etc/koha/koha-conf.xml when package is purged." has the right patch. Sorry about the hassle.
On Mon, 2010-04-19 at 16:58 +1200, Lars Wirzenius wrote: > Do not set owner and mode for generated koha-conf.xml file. > > Set ownership and mode of config file again. > > Remove group write permission from config file. > > Use right filename when remove generated config file in postrm. > --- > debian/koha.postrm | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/debian/koha.postrm b/debian/koha.postrm > index 60ba704..18b3794 100644 > --- a/debian/koha.postrm > +++ b/debian/koha.postrm > @@ -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# _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
