Extend the GLPI installed check

Extending the GLPI installed check by making sure that not only the plugins folder is present. This way it is possible to install plugins before GLPI is started which makes it easier to build custom Docker images based on diouxx/glpi.
pull/51/head
monstermichl 4 years ago committed by GitHub
parent 26b611dbb3
commit 5999b1641c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,11 +22,13 @@ then
echo -e "TLS_REQCERT\tnever" >> /etc/ldap/ldap.conf echo -e "TLS_REQCERT\tnever" >> /etc/ldap/ldap.conf
fi fi
#Téléchargement et extraction des sources de GLPI # Check if GLPI, but not only the plugins folder is present. This way it is possible to install plugins
if [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" ]; # before GLPI is started which makes it easier to build custom Docker images based on diouxx/glpi.
if [ -d "${FOLDER_WEB}${FOLDER_GLPI}" ] && [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" != "plugins" ];
then then
echo "GLPI is already installed" echo "GLPI is already installed"
else else
#Téléchargement et extraction des sources de GLPI
wget -P ${FOLDER_WEB} ${SRC_GLPI} wget -P ${FOLDER_WEB} ${SRC_GLPI}
tar -xzf ${FOLDER_WEB}${TAR_GLPI} -C ${FOLDER_WEB} tar -xzf ${FOLDER_WEB}${TAR_GLPI} -C ${FOLDER_WEB}
rm -Rf ${FOLDER_WEB}${TAR_GLPI} rm -Rf ${FOLDER_WEB}${TAR_GLPI}

Loading…
Cancel
Save