From 64bc8dec7314f1be560edba6db573cf4a4804c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Fri, 3 Jan 2025 15:21:47 -0300 Subject: [PATCH] Update glpi.sh --- ct/glpi.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ct/glpi.sh b/ct/glpi.sh index 57272511..91856b8b 100644 --- a/ct/glpi.sh +++ b/ct/glpi.sh @@ -29,14 +29,13 @@ function update_script() { check_container_storage check_container_resources - if [[ ! -d /var/www/html/glpi/ ]]; then + if [[ ! -d /opt/glpi ]]; then msg_error "No ${APP} Installation Found!" exit fi 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}" - #Auto update under development + msg_error "Ther is currently no automatic update function for ${APP}." else msg_ok "No update required. ${APP} is already at v${RELEASE}." fi