From 3dbe49b6c21d4bdfd41b40f1ee6b6e571483dbcf Mon Sep 17 00:00:00 2001 From: vhsdream Date: Fri, 5 Sep 2025 11:19:49 -0400 Subject: [PATCH] Autocaliweb: use new version helper --- ct/autocaliweb.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ct/autocaliweb.sh b/ct/autocaliweb.sh index e2aa9735..53cf7fc6 100644 --- a/ct/autocaliweb.sh +++ b/ct/autocaliweb.sh @@ -31,7 +31,7 @@ function update_script() { setup_uv RELEASE=$(curl -fsSL https://api.github.com/repos/gelbphoenix/autocaliweb/releases/latest | jq '.tag_name' | sed 's/^"v//;s/"$//') - if [[ "${RELEASE}" != "$(cat ~/.autocaliweb 2>/dev/null)" ]] || [[ ! -f ~/.autocaliweb ]]; then + if check_for_gh_release "autocaliweb" "gelbphoenix/autocaliweb"; then msg_info "Stopping Services" systemctl stop autocaliweb metadata-change-detector acw-ingest-service acw-auto-zipper msg_ok "Stopped Services" @@ -61,6 +61,7 @@ function update_script() { echo "${CALIBRE_RELEASE#v}" >/"$INSTALL_DIR"/CALIBRE_RELEASE sed 's/^/v/' ~/.autocaliweb >"$INSTALL_DIR"/ACW_RELEASE chown -R acw:acw "$INSTALL_DIR" + rm ~/autocaliweb_bkp.tar msg_ok "Updated $APP" msg_info "Starting Services" @@ -68,8 +69,6 @@ function update_script() { msg_ok "Started Services" msg_ok "Updated Successfully" - else - msg_ok "Already up to date" fi exit }