mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-08 07:52:32 -05:00
change VERSION_GLPI for latest release
change VERSION_GLPI for get latest release if undifined when container initialization.
This commit is contained in:
1 parent
8c7fe25f3d
commit
b7174c8e45
1 file changed
+5
-2
+5
-2
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION_GLPI=9.1.4
|
#Controle du choix de version ou prise de la latest
|
||||||
SRC_GLPI=https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz
|
[[ ! "$VERSION_GLPI" ]] \
|
||||||
|
&& VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4)
|
||||||
|
|
||||||
|
SRC_GLPI="https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz"
|
||||||
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
||||||
FOLDER_GLPI=glpi/
|
FOLDER_GLPI=glpi/
|
||||||
FOLDER_WEB=/var/www/html/
|
FOLDER_WEB=/var/www/html/
|
||||||
|
|||||||
Reference in new issue
Block a user