debian/postinst
branchdebian
changeset 228 f98f716b2ae8
parent 224 caf9cb61f856
child 291 32dba1a70a54
--- a/debian/postinst	Thu Nov 12 11:24:50 2009 +0000
+++ b/debian/postinst	Wed Dec 02 17:46:28 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
 
-