Private
Public Access
1
0

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:
constantprojects
2026-02-24 08:41:35 -07:00
parent 5973331f64
commit 06ecfe1034

View File

@@ -75,7 +75,7 @@ echo "Updating system packages..."
echo " Downloading the latest security patches for your operating system." echo " Downloading the latest security patches for your operating system."
echo " On a fresh server this can take 2-10 minutes. Sit tight." echo " On a fresh server this can take 2-10 minutes. Sit tight."
$SUDO apt-get update -qq $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." echo "System packages updated."
# Install firewall, fail2ban, and automatic updates # Install firewall, fail2ban, and automatic updates