From bf5de6a4554572561340b055661ea3fd1c45d368 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Dec 2025 14:41:18 +0100 Subject: [PATCH] fix(2fauth): update PHP version from 8.3 to 8.4 in update_script The install script uses PHP 8.4, but the update_script was still checking for and upgrading to PHP 8.3. This aligns the update with the install configuration. Also improved the sed pattern to handle any 8.x version. --- ct/2fauth.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index b293495cd..64e6cae02 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -34,14 +34,14 @@ function update_script() { msg_info "Creating Backup" mv "/opt/2fauth" "/opt/2fauth-backup" - if ! dpkg -l | grep -q 'php8.3'; then + if ! dpkg -l | grep -q 'php8.4'; then cp /etc/nginx/conf.d/2fauth.conf /etc/nginx/conf.d/2fauth.conf.bak fi msg_ok "Backup Created" - if ! dpkg -l | grep -q 'php8.3'; then - PHP_VERSION="8.3" PHP_MODULE="common,ctype,fileinfo,mysql,cli,tokenizer,dom,redis,session,openssl" PHP_FPM="YES" setup_php - sed -i 's/php8.2/php8.3/g' /etc/nginx/conf.d/2fauth.conf + if ! dpkg -l | grep -q 'php8.4'; then + PHP_VERSION="8.4" PHP_MODULE="common,ctype,fileinfo,mysql,cli,tokenizer,dom,redis,session,openssl" PHP_FPM="YES" setup_php + sed -i 's/php8\.[0-9]/php8.4/g' /etc/nginx/conf.d/2fauth.conf fi fetch_and_deploy_gh_release "2fauth" "Bubka/2FAuth" setup_composer