#!/bin/bash
apt install -y dmidecode hwdata ucf hdparm perl libuniversal-require-perl libwww-perl libparse-edid-perl libproc-daemon-perl libfile-which-perl libhttp-daemon-perl libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl libdigest-sha-perl libsocket-getaddrinfo-perl libtext-template-perl libxml-xpath-perl libyaml-tiny-perl libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl libdigest-hmac-perl libfile-copy-recursive-perl libparallel-forkmanager-perl

wget https://github.com/fusioninventory/fusioninventory-agent/releases/download/2.6/fusioninventory-agent_2.6-1_all.deb

dpkg -i fusioninventory-agent_2.6-1_all.deb

sed -i "s/delaytime = 3600/delaytime = 5/" /etc/fusioninventory/agent.cfg

echo "server = http://glpi.digt.ru/plugins/fusioninventory/" >> /etc/fusioninventory/agent.cfg

systemctl restart fusioninventory-agent

systemctl status fusioninventory-agent



