add update /opt/Traefik_version.txt (#130)

the update function didn't update the Traefik_version.txt which it also checked during the run.
This commit is contained in:
Oliver L 2024-11-08 10:04:14 +01:00 committed by GitHub
parent 7a3adeb142
commit e26bb4e0bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,7 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}
mv /tmp/traefik /usr/bin/
rm -rf traefik*.tar.gz
systemctl restart traefik.service
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP LXC"
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"