diff options
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/echolot.postinst | 19 |
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: |