Adds check to make sure the JOOMLA_DB_PASSWORD_FILE is set before trying to check if the path exist.

This commit is contained in:
Llewellyn van der Merwe 2022-01-18 18:02:00 +02:00
parent 05d90f450c
commit 58b776e440
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
1 changed files with 1 additions and 1 deletions

View File

@ -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