summaryrefslogtreecommitdiff
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
parent76f8bf89dbb9c3bb894db5829da7ba8721541680 (diff)
replace -f with -r and warning message update
-rw-r--r--.docker/app/startup.sh5
-rw-r--r--.docker/app/update.sh5
-rw-r--r--.docker/app/updater.sh5
3 files changed, 6 insertions, 9 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
diff --git a/.docker/app/update.sh b/.docker/app/update.sh
index 5c056f0d2..4c89a7efc 100644
--- a/.docker/app/update.sh
+++ b/.docker/app/update.sh
@@ -22,13 +22,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
diff --git a/.docker/app/updater.sh b/.docker/app/updater.sh
index 78cc415c8..5d4d183b8 100644
--- a/.docker/app/updater.sh
+++ b/.docker/app/updater.sh
@@ -21,13 +21,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