Update glpi-install.sh

This commit is contained in:
Nícolas Pastorello 2025-01-03 11:22:36 -03:00 committed by GitHub
parent 111a825f28
commit ee6442e39d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ msg_ok "Set up database"
msg_info "Installing GLPi" msg_info "Installing GLPi"
cd /opt cd /opt
RELEASE=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') RELEASE=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
echo "${RELEASE}" >"/opt/glpi_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
wget -q "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz" wget -q "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz"
tar -xzvf glpi-${RELEASE}.tgz tar -xzvf glpi-${RELEASE}.tgz