From a246ea835fa2bba14c5dc3b08834fb808adbbc53 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:38:33 +0100 Subject: [PATCH] Update jellystat.sh --- tools/addon/jellystat.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/addon/jellystat.sh b/tools/addon/jellystat.sh index 64d3ce226..88d122de1 100644 --- a/tools/addon/jellystat.sh +++ b/tools/addon/jellystat.sh @@ -118,7 +118,7 @@ function update() { cp "$CONFIG_PATH" /tmp/jellystat.env.bak 2>/dev/null || true msg_ok "Backed up configuration" - fetch_and_deploy_gh_release "jellystat" "CyferShepard/Jellystat" "tarball" "latest" "$INSTALL_PATH" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jellystat" "CyferShepard/Jellystat" "tarball" "latest" "$INSTALL_PATH" msg_info "Restoring configuration" cp /tmp/jellystat.env.bak "$CONFIG_PATH" 2>/dev/null || true @@ -127,20 +127,18 @@ function update() { msg_info "Installing dependencies" cd "$INSTALL_PATH" - npm install &>/dev/null + $STD npm install msg_ok "Installed dependencies" msg_info "Building ${APP}" - npm run build &>/dev/null + $STD npm run build msg_ok "Built ${APP}" msg_info "Starting service" - systemctl start jellystat.service &>/dev/null + systemctl start jellystat msg_ok "Started service" - - msg_ok "Updated ${APP} successfully" - else - msg_ok "${APP} is already up-to-date" + msg_ok "Updated successfully" + exit fi }