debconf to the front od postinst
[carnet-upgrade.git] / debian / postinst
index e1f51d8..8b39c78 100644 (file)
@@ -5,6 +5,10 @@ set -e
 [ "$1" = "configure" ] || exit 0
 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
 
+# Load debconf
+. /usr/share/debconf/confmodule
+db_version 2.0
+
 # Load CARNET Tools
 . /usr/share/carnet-tools/functions.sh
 
@@ -47,9 +51,4 @@ EOF
        fi
        update-locale
 fi
-
-# Load debconf
-. /usr/share/debconf/confmodule
-db_version 2.0
-
 #DEBHELPER#