mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 19:23:31 +00:00
fix: Ensure systemd service is configured during update
This commit is contained in:
@@ -193,6 +193,14 @@ perform_update() {
|
||||
|
||||
set_permissions # Ensure permissions are correct after update
|
||||
|
||||
# Ensure the systemd service is configured correctly before restarting
|
||||
print_info "Ensuring systemd service ($SERVICE_NAME) is configured..."
|
||||
if ! setup_systemd_service; then
|
||||
print_error "Failed to configure systemd service during update."
|
||||
# Decide if this should be fatal, likely yes as restart will fail
|
||||
return 1
|
||||
fi
|
||||
|
||||
print_info "Restarting Pulse service ($SERVICE_NAME)..."
|
||||
if systemctl restart "$SERVICE_NAME"; then
|
||||
print_success "Pulse service restarted."
|
||||
|
||||
Reference in New Issue
Block a user