diff --git a/alpine/Dockerfile b/alpine/Dockerfile index aca8c09..12fa1a9 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -35,15 +35,18 @@ apk add \ php7-mbstring \ php7-simplexml \ php7-iconv \ - php7-sodium + php7-sodium \ + php7-phar COPY CAS-1.3.8.tgz /root/ -RUN pear install /root/CAS-1.3.8.tgz +RUN pear install /root/CAS-1.3.8.tgz && \ +pear install Archive_Tar COPY httpd.conf /etc/apache2 COPY service/ /etc/service/ COPY glpi_init.sh /root/glpi_init.sh COPY glpi.cron /var/spool/cron/crontabs/apache COPY initrc /etc/ +COPY glpi_ticket.class.php.patch /root/ ADD https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz /root/glpi-${GLPI_VERSION}.tgz ADD https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FUSIONINVENTORY_VERSION}/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2 /root/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2 diff --git a/alpine/glpi_init.sh b/alpine/glpi_init.sh index 0ffac07..572eba1 100644 --- a/alpine/glpi_init.sh +++ b/alpine/glpi_init.sh @@ -51,6 +51,7 @@ EOF php bin/console glpi:plugin:activate fusioninventory -n rm install/install.php chown -R apache:apache /var/www/glpi /etc/glpi /var/lib/glpi /var/log/glpi + patch -Np0 -i /root/glpi_ticket.class.php.patch msglog green "Initialazing complete..." else msglog green "GLPI is already initialized" @@ -76,4 +77,6 @@ else php bin/console db:update --config-dir=${GLPI_CONFIG_DIR} -n php bin/console glpi:maintenance:disable -n chown -R apache:apache /var/www/glpi /etc/glpi /var/lib/glpi /var/log/glpi + patch -Np0 -i /root/glpi_ticket.class.php.patch + fi diff --git a/alpine/glpi_ticket.class.php.patch b/alpine/glpi_ticket.class.php.patch new file mode 100644 index 0000000..632af8c --- /dev/null +++ b/alpine/glpi_ticket.class.php.patch @@ -0,0 +1,19 @@ +--- inc/ticket.class.php.old 2020-07-16 14:26:59.000000000 +0200 ++++ inc/ticket.class.php 2020-09-11 18:09:43.200657894 +0200 +@@ -3806,7 +3806,7 @@ + } + } + +- if (empty($delegating) ++/** if (empty($delegating) + && NotificationTargetTicket::isAuthorMailingActivatedForHelpdesk()) { + echo "