mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-22 02:39:27 +00:00
Set environment variables from files in Docker (#717)
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
This commit is contained in:
parent
9e13d2251a
commit
c99085c396
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Environment variables from files
|
||||
if [[ -n "${ENV_PATH}" ]]; then
|
||||
[[ -f ${ENV_PATH} ]] && source ${ENV_PATH} || for f in ${ENV_PATH}/*; do source $f; done
|
||||
fi
|
||||
|
||||
# Parameters
|
||||
if [[ -z "${CODEX_NAT}" ]]; then
|
||||
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user