[bitnami/moodle] Allow to define default site lang with environment variable (#7345)

* Allow to define default site lang with environment variable

Signed-off-by: Karim Ayari <karim.ayari@univ-lyon1.fr>

* double quote fix

Signed-off-by: Karim Ayari <karim.ayari@univ-lyon1.fr>

Signed-off-by: Karim Ayari <karim.ayari@univ-lyon1.fr>
Co-authored-by: Karim Ayari <karim.ayari@univ-lyon1.fr>
This commit is contained in:
Karim
2022-09-29 19:12:24 +02:00
committed by GitHub
parent 96a9f22788
commit d3d03c2c7c
5 changed files with 5 additions and 2 deletions

View File

@@ -320,7 +320,7 @@ moodle_install() {
local -a moodle_install_args=(
"${PHP_BIN_DIR}/php"
"admin/cli/install.php"
"--lang=en"
"--lang=${MOODLE_LANG}"
"--chmod=2775"
"--wwwroot=http://localhost:${http_port}"
"--dataroot=${MOODLE_DATA_DIR}"

View File

@@ -87,6 +87,7 @@ export MOODLE_HOST="${MOODLE_HOST:-}" # only used during the first initializatio
export MOODLE_CRON_MINUTES="${MOODLE_CRON_MINUTES:-1}"
export MOODLE_REVERSEPROXY="${MOODLE_REVERSEPROXY:-no}"
export MOODLE_SSLPROXY="${MOODLE_SSLPROXY:-no}"
export MOODLE_LANG="${MOODLE_LANG:-en}"
# Moodle credentials
export MOODLE_USERNAME="${MOODLE_USERNAME:-user}" # only used during the first initialization

View File

@@ -320,7 +320,7 @@ moodle_install() {
local -a moodle_install_args=(
"${PHP_BIN_DIR}/php"
"admin/cli/install.php"
"--lang=en"
"--lang=${MOODLE_LANG}"
"--chmod=2775"
"--wwwroot=http://localhost:${http_port}"
"--dataroot=${MOODLE_DATA_DIR}"

View File

@@ -87,6 +87,7 @@ export MOODLE_HOST="${MOODLE_HOST:-}" # only used during the first initializatio
export MOODLE_CRON_MINUTES="${MOODLE_CRON_MINUTES:-1}"
export MOODLE_REVERSEPROXY="${MOODLE_REVERSEPROXY:-no}"
export MOODLE_SSLPROXY="${MOODLE_SSLPROXY:-no}"
export MOODLE_LANG="${MOODLE_LANG:-en}"
# Moodle credentials
export MOODLE_USERNAME="${MOODLE_USERNAME:-user}" # only used during the first initialization

View File

@@ -225,6 +225,7 @@ Available environment variables:
- `MOODLE_HOST`: Allows you to configure Moodle's wwwroot feature. Ex: example.com. By default it is a PHP superglobal variable. Default: **$_SERVER['HTTP_HOST']**
- `MOODLE_REVERSEPROXY`: Allows you to activate the reverseproxy feature of Moodle. Default: **no**
- `MOODLE_SSLPROXY`: Allows you to activate the sslproxy feature of Moodle. Default: **no**
- `MOODLE_LANG`: Allows you to set the default site language. Default: **en**
##### Use an existing database