summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-11-14 23:07:31 +0000
committerPeter Palfrader <peter@palfrader.org>2004-11-14 23:07:31 +0000
commitaa6fce0c244bb080ba37a863be217c6ebb5215c6 (patch)
tree8cc548cb12637a1bf1d015f25d7f2de6776ec400
parent37f9798469b1240c131a83086986b7494b627e2a (diff)
Fix postinst some more
-rwxr-xr-xdebian/echolot.postinst19
1 files 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: