34
3
mirror of https://github.com/joomla-docker/docker-joomla.git synced 2024-11-18 02:55:13 +00:00

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

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