izmjene u postinstu stretch debian/1%5.20.0_cn0
authorIvan Rako <ivan.rako@srce.hr>
Sat, 14 Jul 2018 22:01:26 +0000 (00:01 +0200)
committerIvan Rako <ivan.rako@srce.hr>
Sat, 14 Jul 2018 22:01:26 +0000 (00:01 +0200)
debian/postinst

index 29a05cd..5b887c2 100755 (executable)
@@ -1,33 +1,11 @@
 #!/bin/sh
-# postinst script for monit-cn
-#
-# 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>
-#        * <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
-#
+[ "$1" = "configure" ] || exit 0
+[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
 
-case "$1" in
-    configure|reconfigure)
-      # continue below
-    ;;
-
-    *)
-        exit 0
-    ;;
-esac
-
-# import CN-functions
+# Load CARNet Tools
 . /usr/share/carnet-tools/functions.sh
 
 # check if monitrc is ours