Fix interrupted dpkg state before apt-get

Run dpkg --configure -a before apt operations to recover from
any previously interrupted package installations.
This commit is contained in:
Ryan T. Murphy
2026-01-22 19:00:08 -05:00
parent cc9c571c46
commit f2bbf7c826

View File

@@ -31,6 +31,7 @@ echo ""
# Install packages (noninteractive to prevent hanging on prompts)
echo "[1/8] Installing packages..."
export DEBIAN_FRONTEND=noninteractive
dpkg --configure -a 2>/dev/null || true # Fix any interrupted dpkg state
apt-get update -qq
apt-get install -y -qq earlyoom monit