From 58b776e440b77742bcd645a0990f999e5b27af5b Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 18 Jan 2022 18:02:00 +0200 Subject: [PATCH] Adds check to make sure the JOOMLA_DB_PASSWORD_FILE is set before trying to check if the path exist. --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 0c70f98..45fa1d0 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e -if [[ -f "$JOOMLA_DB_PASSWORD_FILE" ]]; then +if [ -n "$JOOMLA_DB_PASSWORD_FILE" ] && [ -f "$JOOMLA_DB_PASSWORD_FILE" ]; then JOOMLA_DB_PASSWORD=$(cat "$JOOMLA_DB_PASSWORD_FILE") fi