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
|
#!/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
|
# Parameters
|
||||||
if [[ -z "${CODEX_NAT}" ]]; then
|
if [[ -z "${CODEX_NAT}" ]]; then
|
||||||
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue