diff --git a/installgpli.sh b/installgpli.sh new file mode 100755 index 0000000..63129b1 --- /dev/null +++ b/installgpli.sh @@ -0,0 +1,32 @@ +glpirel="9.5.7" +dest=/var/www/html + +apt update + +apt install -y mariadb-server + +apt install -y apache2 php php-mysql php-gd php-ldap php-mbstring php-curl php-xml php-imap php-apcu php-cas +wget -nc "https://github.com/glpi-project/glpi/releases/download/${glpirel}/glpi-${glpirel}.tgz" + +tar xvfz glpi-${glpirel}.tgz -C ${dest} + +cd ${dest}/glpi + +chown -R www-data:www-data lib config plugins files +chown www-data:www-data ${dest}/glpi + +cd ${dest}/glpi/plugins + +wget -nc https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5%2B4.0/fusioninventory-9.5+4.0.tar.bz2 +bzip2 -d fusioninventory-9.5+4.0.tar.bz2 +tar xvf fusioninventory-9.5+4.0.tar +chown -R www-data:www-data ${dest}/glpi/plugins + +mkdir ${dest}/ficlients +cd ${dest}/ficlients +#wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/2.5.2/fusioninventory-agent_windows-x86_2.5.2.exe +#wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/2.5.2/fusioninventory-agent_windows-x64_2.5.2.exe +wget -nc https://github.com/glpi-project/glpi-agent/releases/download/1.2/GLPI-Agent-1.2-x64.msi +chmod -R 755 $dest/ficlients + +systemctl restart apache2