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.
This commit is contained in:
Pulse Monitor
2025-08-20 15:51:56 +00:00
parent 244cffe3fa
commit def119fc58
+3 -3
View File
@@ -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"