X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=e54d7eabe7fde62c0cca37b89e0f0fe47738c044;hb=86635ba11f25f1580bb058a044eaf10b7d8a4f39;hp=044b69bb6de55023678116dc6f1070ea31054320;hpb=19781812496693bfa8844390d53fc17824a47778;p=ocsinventory-agent-cn.git diff --git a/debian/postinst b/debian/postinst index 044b69b..e54d7ea 100755 --- a/debian/postinst +++ b/debian/postinst @@ -7,11 +7,12 @@ set -e # 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#