Auto-keep existing config files during apt upgrade
Adds --force-confold to prevent interactive dpkg prompts (e.g. sshd_config) that would block unattended installation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ echo "Updating system packages..."
|
||||
echo " Downloading the latest security patches for your operating system."
|
||||
echo " On a fresh server this can take 2-10 minutes. Sit tight."
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get upgrade -y -qq
|
||||
$SUDO apt-get upgrade -y -qq -o Dpkg::Options::="--force-confold"
|
||||
echo "System packages updated."
|
||||
|
||||
# Install firewall, fail2ban, and automatic updates
|
||||
|
||||
Reference in New Issue
Block a user