izmjene u postinstu
authorIvan Rako <ivan.rako@srce.hr>
Wed, 18 Jul 2018 13:14:19 +0000 (15:14 +0200)
committerIvan Rako <ivan.rako@srce.hr>
Wed, 18 Jul 2018 13:14:19 +0000 (15:14 +0200)
debian/postinst

index 0743729..cd51a84 100755 (executable)
@@ -2,28 +2,13 @@
 
 set -e
 
+[ "$1" = "configure" ] || exit 0
 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
 
-# Source debconf library.
+# Load Debconf
 . /usr/share/debconf/confmodule
 
-case "$1" in
-    configure)
-        # continue below
-        ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-        exit 0
-        ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-        ;;
-esac
-
-
-# Include CARNet functions.
+# Load CARNet Tools
 . /usr/share/carnet-tools/functions.sh
 
 PKG="apache2-cn"