mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-05 22:52:33 -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
|
||||
|
||||
VERSION_GLPI=9.1.4
|
||||
SRC_GLPI=https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz
|
||||
#Controle du choix de version ou prise de la latest
|
||||
[[ ! "$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
|
||||
FOLDER_GLPI=glpi/
|
||||
FOLDER_WEB=/var/www/html/
|
||||
|
||||
Reference in new issue
Block a user