From fb4cc4abfac967a1dd1c7f9fd55d9bd7467ea7aa Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 24 Nov 2024 05:05:05 -0600 Subject: [PATCH] Add Debian support --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 893d948..4954cf7 100755 --- a/install.sh +++ b/install.sh @@ -304,7 +304,11 @@ function setup_rsyslog_conf() { # After: setup_networkd_conf function disable_services() { action_label "DISABLING SYSTEMD SERVICES" - for service in "${services_disable[@]}"; do sudo systemctl disable --now "$service"; done + for service in "${services_disable[@]}"; do + if sudo systemctl is-active "$service"; then + sudo systemctl disable --now "$service" + fi + done } # After: