Merge pull request #51 from monstermichl/master

Extend the GLPI installed check
This commit is contained in:
DiouxX authored and GitHub committed 2022-03-06 20:32:08 +01:00
commit b9510bcaa5
1 file changed
+4 -2
+4 -2
View File
@@ -22,11 +22,13 @@ then
echo -e "TLS_REQCERT\tnever" >> /etc/ldap/ldap.conf
fi
#Téléchargement et extraction des sources de GLPI
if [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" ];
# Check if GLPI, but 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.
if [ -d "${FOLDER_WEB}${FOLDER_GLPI}" ] && [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" != "plugins" ];
then
echo "GLPI is already installed"
else
#Téléchargement et extraction des sources de GLPI
wget -P ${FOLDER_WEB} ${SRC_GLPI}
tar -xzf ${FOLDER_WEB}${TAR_GLPI} -C ${FOLDER_WEB}
rm -Rf ${FOLDER_WEB}${TAR_GLPI}