mirror of
https://github.com/bitnami/containers.git
synced 2026-04-04 00:08:07 +08:00
[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:
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user