X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=debian%2Fdiogenes.postrm;h=620f9248e2fc60f1c30d9bebce25e32a77f2affc;hb=859b1897309b7596f2d6f9ce6c607b87a481af5f;hp=ded38b790a24069bc2e6dc733abe12c58132f856;hpb=f71ab1350a5df9d95c542897cb97a1751cbda62b;p=diogenes.git diff --git a/debian/diogenes.postrm b/debian/diogenes.postrm index ded38b7..620f924 100644 --- a/debian/diogenes.postrm +++ b/debian/diogenes.postrm @@ -31,6 +31,7 @@ remove_from_webconfig () { fi } +# FIXME: do we need to source debconf before the hook? # source dbconfig-common shell library, and call the hook function if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/postrm.mysql @@ -62,7 +63,7 @@ purge) # # Remove ucf-managed files # - if [ -x $(which ucf) ] ; then + if [ -n "$(which ucf)" ] ; then for myfile in /etc/diogenes/apache.conf /etc/diogenes/diogenes.debian.inc.php; do ucf --purge $myfile rm -f $myfile $myfile.dpkg-dist $myfile.dpkg-new $myfile.dpkg-old