Skip to content

Commit fa0aa6d

Browse files
rcourtmanclaude
andcommitted
fix: complete migration from old service names to resolve update failures
Updates installer to use pulse.service and enhances migration logic to handle both pulse-proxmox.service and pulse-monitor.service. This resolves the "No Pulse Installation Found\!" error experienced by existing users during updates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ca8a25e commit fa0aa6d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

scripts/install-pulse.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NODE_MAJOR_VERSION=20
77
PULSE_DIR="/opt/pulse"
88
OLD_PULSE_DIR="/opt/pulse-proxmox"
99
PULSE_USER="pulse"
10-
SERVICE_NAME="pulse-monitor.service"
10+
SERVICE_NAME="pulse.service"
1111
REPO_BASE_URL="https://github.com/rcourtman/Pulse"
1212
SCRIPT_NAME="install-pulse.sh"
1313
SCRIPT_RAW_URL="https://raw.githubusercontent.com/rcourtman/Pulse/main/scripts/install-pulse.sh"
@@ -315,7 +315,10 @@ check_installation() {
315315

316316
[ -d "$PULSE_DIR" ] && pulse_exists=true
317317
[ -d "$OLD_PULSE_DIR" ] && old_pulse_exists=true
318-
systemctl list-unit-files | grep -q "^$SERVICE_NAME" && service_exists=true
318+
# Check for any pulse-related service
319+
(systemctl list-unit-files | grep -q "^$SERVICE_NAME" || \
320+
systemctl list-unit-files | grep -q "^pulse-monitor.service" || \
321+
systemctl list-unit-files | grep -q "^pulse-proxmox.service") && service_exists=true
319322

320323
if [ "$old_pulse_exists" = true ]; then
321324
print_info "Old installation detected at $OLD_PULSE_DIR"
@@ -627,11 +630,15 @@ perform_remove() {
627630
perform_migration() {
628631
print_info "Migrating old installation..."
629632

630-
# Stop old service
633+
# Stop old service (could be either pulse-proxmox.service or pulse-monitor.service)
631634
if systemctl is-active --quiet "pulse-proxmox.service"; then
632635
systemctl stop "pulse-proxmox.service"
633636
fi
637+
if systemctl is-active --quiet "pulse-monitor.service"; then
638+
systemctl stop "pulse-monitor.service"
639+
fi
634640
systemctl disable "pulse-proxmox.service" &>/dev/null || true
641+
systemctl disable "pulse-monitor.service" &>/dev/null || true
635642

636643
# Backup old data
637644
local backup_dir="/tmp/pulse-migration-$$"
@@ -649,6 +656,7 @@ perform_migration() {
649656
# Remove old installation
650657
rm -rf "$OLD_PULSE_DIR"
651658
rm -f "/etc/systemd/system/pulse-proxmox.service"
659+
rm -f "/etc/systemd/system/pulse-monitor.service"
652660

653661
# Perform fresh install
654662
INSTALL_MODE="install"

0 commit comments

Comments
 (0)