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