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: