Browse Source

systemctl

merge-requests/8/head
Steven Foerster 6 years ago
parent
commit
40902d3997
  1. 8
      scripts/install.sh

8
scripts/install.sh

@ -111,7 +111,7 @@ sudo sed -i 's/#PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/ss @@ -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 @@ -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

Loading…
Cancel
Save