From 78b4e71ce97024605ea02a9728cf6313f0ff9ed6 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sun, 1 Feb 2026 20:46:58 +0100 Subject: [PATCH] fix(2fauth): export PHP_VERSION for nginx config The PHP_VERSION variable was only available within the setup_php function call scope. By setting it separately before the function call, it remains available for the nginx configuration heredoc. Fixes #11439 --- install/2fauth-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 44ae3e08d..62c2e9c3a 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -17,7 +17,8 @@ msg_info "Installing Dependencies" $STD apt install -y nginx msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_FPM="YES" setup_php +export PHP_VERSION="8.4" +PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="2fauth_db" MARIADB_DB_USER="2fauth" setup_mariadb_db