mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-04 14:42:33 -05:00
Merge pull request #16 from pcortellezzi/master
Use GitHub API to retrieve the release download url
This commit is contained in:
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -23,7 +23,8 @@ php-mbstring \
|
||||
php-xml \
|
||||
php-apcu-bc \
|
||||
cron \
|
||||
wget
|
||||
wget \
|
||||
jq
|
||||
|
||||
#Copie et execution du script pour l'installation et l'initialisation de GLPI
|
||||
COPY glpi-start.sh /opt/
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ if [[ -z "${TIMEZONE}" ]]; then echo "TIMEZONE is unset";
|
||||
else echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.0/apache2/conf.d/timezone.ini;
|
||||
fi
|
||||
|
||||
SRC_GLPI="https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz"
|
||||
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
||||
SRC_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/tags/${VERSION_GLPI} | jq .assets[0].browser_download_url | tr -d \")
|
||||
TAR_GLPI=$(basename ${SRC_GLPI})
|
||||
FOLDER_GLPI=glpi/
|
||||
FOLDER_WEB=/var/www/html/
|
||||
|
||||
|
||||
Reference in new issue
Block a user