From def119fc587fc924616632556a4a30dac6625515 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Wed, 20 Aug 2025 15:51:56 +0000 Subject: [PATCH] fix: remove pulse-backend.service from pre-v4 detection The service name pulse-backend.service is used by both v4 and pre-v4 installations, so it's not a reliable indicator. Only check for Node.js artifacts (package.json, node_modules, etc) which are exclusive to pre-v4 versions. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 4f980d69b..529cd66a7 100755 --- a/install.sh +++ b/install.sh @@ -47,14 +47,14 @@ check_root() { } check_pre_v4_installation() { - # Check for Node.js version indicators + # Check for Node.js version indicators (pre-v4 used Node.js) + # Note: pulse-backend.service is NOT a reliable indicator as v4 can use it too if [[ -f "$INSTALL_DIR/.env" ]] || \ [[ -d "$INSTALL_DIR/node_modules" ]] || \ [[ -f "$INSTALL_DIR/package.json" ]] || \ [[ -f "$INSTALL_DIR/server.js" ]] || \ [[ -d "$INSTALL_DIR/backend" ]] || \ - [[ -d "$INSTALL_DIR/frontend" ]] || \ - systemctl list-unit-files --no-legend | grep -q "pulse-backend.service"; then + [[ -d "$INSTALL_DIR/frontend" ]]; then echo print_error "Pre-v4 Pulse Installation Detected"