mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 03:33:53 +00:00
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:
+3
-3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user