debian/postinst
branchdebian
changeset 224 caf9cb61f856
parent 116 d99f3169828a
child 291 32dba1a70a54
--- a/debian/postinst	Mon Nov 30 12:55:11 2009 +0000
+++ b/debian/postinst	Mon Nov 30 15:20:34 2009 +0000
@@ -1,25 +1,13 @@
 #!/bin/sh
 # postinst script for mercurial-server
-#
-# see: dh_installdeb(1)
 
 set -e
 
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
+# Load debconf
+. /usr/share/debconf/confmodule
 
 case "$1" in
-    configure)
+    configure|reconfigure)
         if ! getent passwd hg >/dev/null; then
             adduser --disabled-password --quiet --system \
                 --shell /bin/sh --group \
@@ -45,4 +33,3 @@
 
 exit 0
 
-