diff options
Diffstat (limited to '.docker/app/startup.sh')
| -rw-r--r-- | .docker/app/startup.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.docker/app/startup.sh b/.docker/app/startup.sh index 72ee24f80..fd2e92f97 100644 --- a/.docker/app/startup.sh +++ b/.docker/app/startup.sh @@ -27,13 +27,12 @@ for VAR in $(printenv | awk -F= '{print $1}'); do echo "warning: Both $ENV_VAR and $VAR are set. $VAR will override $ENV_VAR." fi - if [[ -f "$ENV_FILE_NAME" ]]; then + if [[ -r "$ENV_FILE_NAME" ]]; then VALUE="$(cat "$ENV_FILE_NAME")" export "$ENV_VAR"="$VALUE" echo "$ENV_VAR environment variable was set by secret file $ENV_FILE_NAME" else - echo "warning: Secret file $ENV_FILE_NAME for $VAR does not exist or is not a regular file." - + echo "warning: Secret file $ENV_FILE_NAME for $VAR is not readable or does not exist." fi fi done |