[bitnami/moodle] Release 5.0.1-debian-12-r2 (#82700)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot
2025-06-27 09:13:59 +02:00
committed by GitHub
parent be7e032c15
commit c770a6d54e
2 changed files with 9 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ ARG WITH_ALL_LOCALES="no"
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2025-06-26T06:29:42Z" \
org.opencontainers.image.created="2025-06-27T06:32:04Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/moodle/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/moodle" \

View File

@@ -426,9 +426,15 @@ if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
#########################
moodle_configure_reverseproxy() {
# Checking the reverseproxy setting values
is_boolean_yes "$MOODLE_REVERSEPROXY" && sed -i "/^require/i \$CFG->reverseproxy = true;" "$MOODLE_CONF_FILE"
if is_boolean_yes "$MOODLE_REVERSEPROXY"; then
content="$(sed "/^require/i \$CFG->reverseproxy = true;" "$MOODLE_CONF_FILE")"
echo "$content" > "$MOODLE_CONF_FILE"
fi
# Checking the sslproxy setting values
is_boolean_yes "$MOODLE_SSLPROXY" && sed -i "/^require/i \$CFG->sslproxy = true;" "$MOODLE_CONF_FILE"
if is_boolean_yes "$MOODLE_SSLPROXY"; then
content="$(sed "/^require/i \$CFG->sslproxy = true;" "$MOODLE_CONF_FILE")"
echo "$content" > "$MOODLE_CONF_FILE"
fi
true
}