mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-01 04:54:49 +02:00
fix: load variables from files the bash way
This commit is contained in:
parent
0f542670f2
commit
15db792c14
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ function __environment_variables_from_files() {
|
|||
|
||||
if [[ -f "${file_path}" ]]; then
|
||||
_log 'info' "Getting secret ${env_var} from ${file_path}"
|
||||
export "${env_var}"="$(< "${file_path}")"
|
||||
printf -v "${env_var}" '%s' "$(< "${file_path}")"
|
||||
else
|
||||
_log 'error' "File ${file_path} does not exist, defined in ${file_env_var}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue