fix: add ondrej/php PPA before package install — required for PHP 8.2 on Ubuntu 24.04
This commit is contained in:
+13
-1
@@ -75,7 +75,19 @@ if ! step_done "resolved_stub"; then
|
|||||||
fi
|
fi
|
||||||
success "Port 53 free"
|
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"
|
step "Installing system packages"
|
||||||
if ! step_done "packages"; then
|
if ! step_done "packages"; then
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|||||||
Reference in New Issue
Block a user