Skip to content

Commit aeafbb1

Browse files
authored
Update glpi-install.sh (#8092)
1 parent 938609d commit aeafbb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/glpi-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ msg_ok "Set up database"
4343

4444
msg_info "Installing GLPi"
4545
cd /opt
46-
RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
47-
curl -fsSL "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz" -o "glpi-${RELEASE}.tgz"
48-
$STD tar -xzvf glpi-${RELEASE}.tgz
46+
#RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
47+
curl -fsSL "https://github.com/glpi-project/glpi/releases/download/10.0.20/glpi-10.0.20.tgz" -o "glpi-10.0.20.tgz"
48+
$STD tar -xzvf glpi-10.0.20.tgz
4949
cd /opt/glpi
5050
$STD php bin/console db:install --db-name=$DB_NAME --db-user=$DB_USER --db-password=$DB_PASS --no-interaction --allow-superuser
5151
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
@@ -144,7 +144,7 @@ customize
144144

145145
msg_info "Cleaning up"
146146
rm -rf /opt/glpi/install
147-
rm -rf /opt/glpi-${RELEASE}.tgz
147+
rm -rf /opt/glpi-10.0.20.tgz
148148
$STD apt-get -y autoremove
149149
$STD apt-get -y autoclean
150150
msg_ok "Cleaned"

0 commit comments

Comments
 (0)