fix: correct usage of '_environment_variables_export'

Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
georglauterbach 2025-01-19 11:04:22 +01:00
parent f0735fcfb1
commit ae5e2c5a99
No known key found for this signature in database
GPG key ID: F367F7C43C118578
2 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,7 @@ function _early_variables_setup() {
_obtain_hostname_and_domainname
__environment_variables_backwards_compatibility
__environment_variables_general_setup
__environment_variables_export
}
# 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)
# 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`).
function _environment_variables_export() {
function __environment_variables_export() {
_log 'debug' "Exporting environment variables now (creating '/etc/dms-settings')"
: >/root/.bashrc # make DMS variables available in login shells and their subprocesses