From a3c18122d5e9e954aff34d25d32dadfcc1e03918 Mon Sep 17 00:00:00 2001 From: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com> Date: Mon, 28 Jul 2025 21:35:10 +0200 Subject: [PATCH] Update ots.sh --- ct/ots.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/ots.sh b/ct/ots.sh index e3e03df99..774c44847 100644 --- a/ct/ots.sh +++ b/ct/ots.sh @@ -29,10 +29,11 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/Luzifer/ots/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + if [[ "${RELEASE}" != "$(cat ~/.ots 2>/dev/null)" ]] || [[ ! -f ~/.ots ]]; then msg_info "Stopping ${APP} Service" systemctl stop ots + systemctl stop nginx msg_ok "Stopped ${APP} Service" msg_info "Updating ${APP} to v${RELEASE}" @@ -41,6 +42,7 @@ function update_script() { msg_info "Stopping ${APP} Service" systemctl start ots + systemctl start nginx msg_ok "Stopped ${APP} Service" else