From 40902d39978361d71869e73d059e74148f13edc3 Mon Sep 17 00:00:00 2001 From: Steven Foerster Date: Sat, 21 Mar 2020 00:26:12 -0400 Subject: [PATCH] systemctl --- scripts/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index c5f8d71..6817256 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -111,7 +111,7 @@ sudo sed -i 's/#PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/ss sudo sed -i 's/PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config sudo sed -i 's/#PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config sudo sed -i 's/PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config -sudo systemctl restart ssh +sudo systemctl restart ssh || true # Additional tools fail2ban sudo apt-get install -y dnsutils fail2ban @@ -159,9 +159,9 @@ fi sudo cp ./scripts/conf/20auto-upgrades /etc/apt/apt.conf.d/ sudo cp ./scripts/conf/50unattended-upgrades /etc/apt/apt.conf.d/ -sudo systemctl stop unattended-upgrades -sudo systemctl daemon-reload -sudo systemctl restart unattended-upgrades +sudo systemctl stop unattended-upgrades || true +sudo systemctl daemon-reload || true +sudo systemctl restart unattended-upgrades || true # setup Mistborn services