mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-14 17:23:25 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user