diff --git a/src/main/core/Dockerfile b/src/main/core/Dockerfile index 48b219b..86a16f4 100644 --- a/src/main/core/Dockerfile +++ b/src/main/core/Dockerfile @@ -16,6 +16,7 @@ ARG GLPI_FILES_DIR=/var/lib/glpi ARG GLPI_LOG_DIR=/var/log/glpi ARG HTTP_WWW=/var/www/html ARG GLPI_WWW=${HTTP_WWW}/glpi +ARG GLPI_MARKETPLACE_DIR=${GLPI_WWW}/marketplace ARG LOCAL_INSTALLATION_FOLDER=src/main/core RUN mkdir ${GLPI_CONFIG_DIR} ${GLPI_OPT_DIR} ${GLPI_FILES_DIR} ${GLPI_LOG_DIR} @@ -65,6 +66,7 @@ RUN mkdir ${GLPI_FILES_DIR}/_templates \ # && chmod -R 755 ${GLPI_WWW}/*.php VOLUME $GLPI_FILES_DIR +VOLUME $GLPI_MARKETPLACE_DIR VOLUME $GLPI_CONFIG_DIR VOLUME $GLPI_LOG_DIR diff --git a/src/main/init/Dockerfile b/src/main/init/Dockerfile index 906e55c..97f5ae4 100644 --- a/src/main/init/Dockerfile +++ b/src/main/init/Dockerfile @@ -6,7 +6,7 @@ ARG GLPI_FILES_DIR=/var/lib/glpi ARG GLPI_LOG_DIR=/var/log/glpi ARG GLPI_OPT_DIR=/opt/glpi -COPY src/main/init/script/glpi-install.sh ${GLPI_OPT_DIR}/ +COPY src/main/init/opt/glpi/* ${GLPI_OPT_DIR}/ RUN chown -R www-data:www-data ${GLPI_OPT_DIR} \ && chmod 755 ${GLPI_OPT_DIR}/glpi-install.sh diff --git a/src/main/init/script/glpi-install.sh b/src/main/init/opt/glpi/glpi-install.sh similarity index 82% rename from src/main/init/script/glpi-install.sh rename to src/main/init/opt/glpi/glpi-install.sh index 3680de4..49f478d 100755 --- a/src/main/init/script/glpi-install.sh +++ b/src/main/init/opt/glpi/glpi-install.sh @@ -90,29 +90,30 @@ EOF cat /etc/glpi/local_define.php note_start_task 0 "generate_local_define()" - cat < /etc/glpi/local_define.php - /etc/glpi/local_define.php +#