diff --git a/ct/glpi.sh b/ct/glpi.sh index 03cfb3ee..57272511 100644 --- a/ct/glpi.sh +++ b/ct/glpi.sh @@ -1,10 +1,9 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) + # Copyright (c) 2021-2025 community-scripts ORG -# Author: kristocopani -# License: MIT -# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://semaphoreui.com/ +# Author: NĂ­colas Pastorello (opastorello) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # App Default Values APP="GLPI" @@ -37,12 +36,7 @@ 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}" - cd /opt - wget -q https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb - dpkg -i semaphore_${RELEASE}_linux_amd64.deb &>/dev/null - echo "${RELEASE}" >"/opt/${APP}_version.txt" - msg_ok "Updated ${APP} to v${RELEASE}" - msg_ok "Updated Successfully" + #Auto update under development else msg_ok "No update required. ${APP} is already at v${RELEASE}." fi