X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Fpreinst;h=2635c367e0f89d388c9f65bc2e6bff3956d02f4e;hb=8848ccd7e3f35d23478ef6c8a031f6492be608e4;hp=9052dd1e36eed08c93c530154e2f8b5ce2c07b2c;hpb=3f4e737889ff4683c562dc119bd7dfb6fa1e553a;p=pkg%2Fblosxom.git diff --git a/debian/preinst b/debian/preinst index 9052dd1..2635c36 100644 --- a/debian/preinst +++ b/debian/preinst @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # preinst script for blosxom -# copyright 2007-2008 by Gerfried Fuchs +# copyright 2007-2008 by Rhonda D'Vine # Licenced in the same way as blosxom itself +set -e + rm_conffile() { PKGNAME="$1" CONFFILE="$2" @@ -32,6 +34,7 @@ install|upgrade) story.1993 story.html story.index ; do rm_conffile blosxom "/etc/blosxom/flavours/$i" done + rm_conffile blosxom "/etc/blosxom/plugins/timezone" fi if [ -d /var/lib/blosxom/data/flavours ] ; then cd /var/lib/blosxom/data/flavours @@ -40,7 +43,7 @@ install|upgrade) foot.1993 foot.html foot.index \ head.1993 head.html head.index \ story.1993 story.html story.index ; do - test ! -L $i || test ! -f $i || rm $i + test ! -L $i || test -f $i || rm $i done fi esac