From 51ba8ca7c8fffd0d83e0d3144e5d679305c4627f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:01:10 +0100 Subject: [PATCH] fix(2fauth): set PHP_VERSION globally for nginx config The PHP_VERSION was passed inline to setup_php which uses it as a local variable. This caused 'unbound variable' error in the nginx heredoc. Setting PHP_VERSION before the function call keeps it in global scope for use in the nginx configuration. --- 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 95365cdb6..118cec33c 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_MODULE="common,ctype,fileinfo,mysql,tokenizer,dom,redis" PHP_VERSION="8.4" PHP_FPM="YES" setup_php +PHP_VERSION="8.4" +PHP_MODULE="common,ctype,fileinfo,mysql,tokenizer,dom,redis" PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="2fauth_db" MARIADB_DB_USER="2fauth" setup_mariadb_db