Update glpi.sh

This commit is contained in:
Nícolas Pastorello 2025-01-02 00:40:20 -03:00 committed by GitHub
parent 0cf63950dc
commit 0348074c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,9 +26,6 @@ function update_script() {
RELEASE=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Updating ${APP} to v${RELEASE}"
#In development
msg_ok "Updated ${APP} LXC"
else
msg_ok "No update required. ${APP} is already at v${RELEASE}."