From a2a98cf26db365e7e7a9344e14457e99c7eadfa2 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 12 Jan 2026 18:02:41 +0100 Subject: [PATCH] remove locals --- tools/addon/jellystat.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/addon/jellystat.sh b/tools/addon/jellystat.sh index d27aa80a4..0127b8115 100644 --- a/tools/addon/jellystat.sh +++ b/tools/addon/jellystat.sh @@ -127,21 +127,18 @@ function update() { # INSTALL # ============================================================================== function install() { - local NODE_VER="22" - local PG_VER="17" - # Setup Node.js (only installs if not present or different version) if command -v node &>/dev/null; then msg_ok "Node.js already installed ($(node -v))" else - NODE_VERSION="${NODE_VER}" setup_nodejs + NODE_VERSION="22" setup_nodejs fi # Setup PostgreSQL (only installs if not present) if command -v psql &>/dev/null; then msg_ok "PostgreSQL already installed" else - PG_VERSION="${PG_VER}" setup_postgresql + PG_VERSION="17" setup_postgresql fi # Create database and user (skip if already exists) @@ -354,13 +351,11 @@ if [[ -d "$INSTALL_PATH" && -f "$INSTALL_PATH/package.json" ]]; then fi # Fresh installation -local NODE_VER="22" -local PG_VER="17" msg_warn "${APP} is not installed." echo "" echo -e "${TAB}${INFO} This will install:" -echo -e "${TAB} - Node.js ${NODE_VER}" -echo -e "${TAB} - PostgreSQL ${PG_VER}" +echo -e "${TAB} - Node.js 22" +echo -e "${TAB} - PostgreSQL 17" echo -e "${TAB} - Jellystat" echo ""