From 7ee69fb1843a891b2d30f156b86c595b66f4b412 Mon Sep 17 00:00:00 2001 From: beech Date: Wed, 13 Nov 2024 18:29:21 -0600 Subject: [PATCH] Unattended-upgrades --- server.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.sh b/server.sh index 37afe54..6148aa9 100644 --- a/server.sh +++ b/server.sh @@ -29,6 +29,10 @@ setup_firewall () { sudo ufw allow ssh > /dev/null 2>&1 sudo ufw enable echo "UFW enabled..." + sudo apt-get install unattended-upgrades + echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections + dpkg-reconfigure -f noninteractive unattended-upgrades + echo "Unattended security updates enabled" } install_software () { @@ -38,7 +42,7 @@ install_software () { } while true; do - options=("Setup Sudo" "Install Docker" "Setup Firewall" "Install Software" "Exit") + options=("Setup Sudo" "Install Docker" "Setup Firewall & Security Updates" "Install Software" "Exit") echo "Debian Server Setup: " select opt in "${options[@]}"; do