X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=13611780873a2f99df25f2f7814a56e62704af8b;hb=HEAD;hp=044b69bb6de55023678116dc6f1070ea31054320;hpb=19781812496693bfa8844390d53fc17824a47778;p=ocsinventory-agent-cn.git diff --git a/debian/postinst b/debian/postinst index 044b69b..1361178 100755 --- a/debian/postinst +++ b/debian/postinst @@ -5,13 +5,14 @@ set -e [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx -# Load CARNet Tools +# Load CARNET Tools . /usr/share/carnet-tools/functions.sh + # Load Debconf . /usr/share/debconf/confmodule ocsmethod="http" -ocsserver="https://inventory.CARNet.hr/ocsinventory" +ocsserver="https://inventory.carnet.hr/ocsinventory" db_get ocsinventory-agent/method || true method="$RET" @@ -40,3 +41,5 @@ fi if ! grep -q ^server= /etc/ocsinventory/ocsinventory-agent.cfg; then echo "server=$ocsserver" >> /etc/ocsinventory/ocsinventory-agent.cfg fi + +#DEBHELPER#