From 8f03b009cb3b927c8d903edc07459f172b984dcd Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 22 May 2025 14:13:10 +0200 Subject: [PATCH] Update argus.sh --- ct/argus.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/argus.sh b/ct/argus.sh index b7032fe..2180d6e 100644 --- a/ct/argus.sh +++ b/ct/argus.sh @@ -32,13 +32,14 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/release-argus/Argus/releases/latest | jq -r .tag_name | sed 's/^v//') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating $APP to ${RELEASE}" + rm -f /opt/argus/Argus curl -fsSL "https://github.com/release-argus/Argus/releases/download/${RELEASE}/Argus-${RELEASE}.linux-amd64" -o /opt/argus/Argus chmod +x /opt/argus/Argus systemctl restart argus echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated $APP to ${RELEASE}" + msg_ok "Updated ${APP} to ${RELEASE}" else - msg_ok "$APP is already up to date (${RELEASE})" + msg_ok "${APP} is already up to date (${RELEASE})" fi }