From 9fbae11900eee6b13ff80d01c0c7cd8642be09cf Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 24 Nov 2024 05:11:12 -0600 Subject: [PATCH] Egh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b2a1dfa..3d83706 100755 --- a/install.sh +++ b/install.sh @@ -149,7 +149,6 @@ services_enable=( firewalld.service prometheus-node-exporter.service rsyslog.service - sshd.service systemd-networkd tailscaled.service ) @@ -319,6 +318,11 @@ function disable_services() { function enable_services() { action_label "ENABLING SYSTEMD SERVICES" for service in "${services_enable[@]}"; do sudo systemctl enable --now "$service"; done + if test -f /etc/debian_version; then + sudo systemctl enable --now ssh.service + elif test -f /etc/redhat-release; then + sudo systemctl enable --now sshd.service + fi } function disable_ipv6() {