From: Ivan Rako Date: Sat, 14 Jul 2018 22:01:26 +0000 (+0200) Subject: izmjene u postinstu X-Git-Tag: debian/1%5.20.0_cn0^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=monit-cn.git;a=commitdiff_plain;h=4021af87bb46b6ad7922e87d15e67561c41fd0d9 izmjene u postinstu --- diff --git a/debian/postinst b/debian/postinst index 29a05cd..5b887c2 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# 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