mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-18 16:49:06 +02:00
fix: correct usage of '_environment_variables_export'
Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
f0735fcfb1
commit
ae5e2c5a99
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,6 @@ function _register_functions() {
|
||||||
|
|
||||||
_register_setup_function '_setup_save_states'
|
_register_setup_function '_setup_save_states'
|
||||||
_register_setup_function '_setup_apply_fixes_after_configuration'
|
_register_setup_function '_setup_apply_fixes_after_configuration'
|
||||||
_register_setup_function '_environment_variables_export'
|
|
||||||
|
|
||||||
if [[ ${ENABLE_MTA_STS} -eq 1 ]]; then
|
if [[ ${ENABLE_MTA_STS} -eq 1 ]]; then
|
||||||
_register_setup_function '_setup_mta_sts'
|
_register_setup_function '_setup_mta_sts'
|
||||||
|
|
|
@ -7,6 +7,7 @@ function _early_variables_setup() {
|
||||||
_obtain_hostname_and_domainname
|
_obtain_hostname_and_domainname
|
||||||
__environment_variables_backwards_compatibility
|
__environment_variables_backwards_compatibility
|
||||||
__environment_variables_general_setup
|
__environment_variables_general_setup
|
||||||
|
__environment_variables_export
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function handles variables that are deprecated. This allows a
|
# This function handles variables that are deprecated. This allows a
|
||||||
|
@ -190,7 +191,7 @@ function _environment_variables_saslauthd() {
|
||||||
# This function Writes the contents of the `VARS` map (associative array)
|
# This function Writes the contents of the `VARS` map (associative array)
|
||||||
# to locations where they can be sourced from (e.g. `/etc/dms-settings`)
|
# to locations where they can be sourced from (e.g. `/etc/dms-settings`)
|
||||||
# or where they can be used by Bash directly (e.g. `/root/.bashrc`).
|
# or where they can be used by Bash directly (e.g. `/root/.bashrc`).
|
||||||
function _environment_variables_export() {
|
function __environment_variables_export() {
|
||||||
_log 'debug' "Exporting environment variables now (creating '/etc/dms-settings')"
|
_log 'debug' "Exporting environment variables now (creating '/etc/dms-settings')"
|
||||||
|
|
||||||
: >/root/.bashrc # make DMS variables available in login shells and their subprocesses
|
: >/root/.bashrc # make DMS variables available in login shells and their subprocesses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue