From 149b46e7a83a4bd7038d6cb1bb90c21d738d3ff7 Mon Sep 17 00:00:00 2001 From: DiouxX Date: Tue, 28 Dec 2021 09:07:14 +0100 Subject: [PATCH] Move ldap dependances to Dockerfile --- Dockerfile | 5 +++++ glpi-start.sh | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5171e99..5c37500 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,11 @@ cron \ wget \ ca-certificates \ jq \ +libldap-2.4-2 \ +libldap-common \ +libsasl2-2 \ +libsasl2-modules \ +libsasl2-modules-db \ && rm -rf /var/lib/apt/lists/* #Copie et execution du script pour l'installation et l'initialisation de GLPI diff --git a/glpi-start.sh b/glpi-start.sh index 0592e37..92063aa 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -16,12 +16,6 @@ FOLDER_GLPI=glpi/ FOLDER_WEB=/var/www/html/ #check if TLS_REQCERT is present -if [ ! -f /etc/ldap/ldapd.conf ] -then - echo "The file /etc/ldap/ldap.conf does not exit" - apt update && apt install -y libldap-2.4-2 libldap-common libsasl2-2 libsasl2-modules libsasl2-modules-db -fi - if !(grep -q "TLS_REQCERT" /etc/ldap/ldap.conf) then echo "TLS_REQCERT isn't present"