Compare commits

..
Author SHA1 Message Date
MickLesk 56964fae1f Dreeve: follow FrankenPHP releases for PHP 8.6
Dreeve 5.9.3 requires PHP 8.6, but FrankenPHP was pinned to 1.12.7, which
ships PHP 8.5, so composer install failed. The pin worked around the argv
bug in 1.13.0, fixed in 1.13.1; 1.14.0 ships PHP 8.6. The update never
touched FrankenPHP, so existing installs would have failed the same way on
their next Dreeve update; it now updates FrankenPHP first.
2026-12-02 10:01:34 +01:00
3 changed files with 36 additions and 3 deletions

No files matched your search

+12
View File
@@ -31,6 +31,18 @@ function update_script() {
exit
fi
if check_for_gh_release "frankenphp" "php/frankenphp"; then
msg_info "Stopping Service"
systemctl stop dreeve
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
msg_info "Starting Service"
systemctl start dreeve
msg_ok "Started Service"
fi
if check_for_gh_release "dreeve" "dreeveapp/dreeve"; then
msg_info "Stopping Service"
systemctl stop dreeve
+23 -1
View File
@@ -30,7 +30,29 @@ function update_script() {
exit
fi
setup_mariadb
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql" setup_php
CURRENT_PHP=$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2)
if [[ "$CURRENT_PHP" != "8.4" ]]; then
msg_info "Migrating PHP $CURRENT_PHP to 8.4"
$STD curl -fsSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb
$STD sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
cat <<EOF >/etc/apt/sources.list.d/php.sources
Types: deb
URIs: https://packages.sury.org/php/
Suites: $(lsb_release -sc)
Components: main
Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg
EOF
apt_update_safe
$STD apt remove -y php"${CURRENT_PHP//./}"*
$STD apt install -y \
php8.4 \
php8.4-{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,fpm} \
libapache2-mod-php8.4
msg_ok "Migrated PHP $CURRENT_PHP to 8.4"
fi
if [[ -f /opt/${APP}_version.txt ]]; then
mv /opt/"${APP}_version.txt" ~/.pterodactyl-panel
+1 -2
View File
@@ -20,8 +20,7 @@ $STD apt install -y \
ca-certificates
msg_ok "Installed Dependencies"
# 1.13.0's php-cli shifts the script into argv[1], which breaks composer and bin/console (php/frankenphp#2690); unpin once 1.13.1 is out
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "v1.12.7" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
fetch_and_deploy_gh_release "dreeve" "dreeveapp/dreeve" "tarball"
msg_info "Providing php CLI"