From d3852d4f6b4a9548daa06db91e779b1f78af99fa Mon Sep 17 00:00:00 2001 From: DiouxX Date: Mon, 7 Mar 2022 15:30:00 +0100 Subject: [PATCH] Revert "Extend the GLPI installed check" --- glpi-start.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/glpi-start.sh b/glpi-start.sh index 656a1e5..92063aa 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -22,13 +22,11 @@ then echo -e "TLS_REQCERT\tnever" >> /etc/ldap/ldap.conf fi -# 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" ]; +#Téléchargement et extraction des sources de GLPI +if [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" ]; 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}