From aa6fce0c244bb080ba37a863be217c6ebb5215c6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 14 Nov 2004 23:07:31 +0000 Subject: Fix postinst some more --- debian/echolot.postinst | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/debian/echolot.postinst b/debian/echolot.postinst index b638d88..3e30365 100755 --- a/debian/echolot.postinst +++ b/debian/echolot.postinst @@ -1,8 +1,14 @@ #!/bin/sh -e # postinst for Echolot - -. /usr/share/debconf/confmodule +# remove old debconf stuff +if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then + if dpkg --compare-versions "$2" lt "2.1.7" ; then + . /usr/share/debconf/confmodule + db_purge + db_stop + fi +fi # Make sure the echolot user exists adduser --quiet \ @@ -29,15 +35,6 @@ if ( ! dpkg-statoverride --list /var/run/echolot > /dev/null ); then dpkg-statoverride --update --add root echolot 02770 /var/run/echolot fi -# remove debconf stuff -if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then - if dpkg --compare-versions "$2" lt "2.1.7" ; then - . /usr/share/debconf/confmodule - db_purge - db_stop - fi -fi - #DEBHELPER# # vim:set ts=4: -- cgit v1.2.3