fix: add ondrej/php PPA before package install — required for PHP 8.2 on Ubuntu 24.04

This commit is contained in:
NixReaper
2026-04-23 17:32:59 -05:00
parent fa9102f7db
commit 6f2a2bac6b
+13 -1
View File
@@ -75,7 +75,19 @@ if ! step_done "resolved_stub"; then
fi
success "Port 53 free"
# ── 3. System packages ────────────────────────────────────────────────────────
# ── 3. ondrej/php PPA (required for PHP 8.2 on Ubuntu 24.04) ─────────────────
step "Adding ondrej/php PPA"
if ! step_done "php_ppa"; then
export DEBIAN_FRONTEND=noninteractive
# Install prereqs for add-apt-repository
apt-get install -y -qq ca-certificates gnupg software-properties-common
add-apt-repository -y ppa:ondrej/php
apt-get update -qq
mark_done "php_ppa"
fi
success "ondrej/php PPA added"
# ── 4. System packages ────────────────────────────────────────────────────────
step "Installing system packages"
if ! step_done "packages"; then
export DEBIAN_FRONTEND=noninteractive