summaryrefslogtreecommitdiff
path: root/.docker/app/startup.sh
diff options
context:
space:
mode:
authorDennis Gaida <2392217+DennisGaida@users.noreply.github.com>2025-10-10 14:43:30 +0200
committerDennis Gaida <2392217+DennisGaida@users.noreply.github.com>2025-10-10 14:43:30 +0200
commit6acec51a27bf07e6468054ad67decc4443d07a00 (patch)
treeff98055aace094e8266ea0b23e95e66fc9a4a728 /.docker/app/startup.sh
parent76f8bf89dbb9c3bb894db5829da7ba8721541680 (diff)
replace -f with -r and warning message update
Diffstat (limited to '.docker/app/startup.sh')
-rw-r--r--.docker/app/startup.sh5
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