mirror of
https://github.com/joomla-docker/docker-joomla.git
synced 2025-01-10 17:14:41 +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:
parent
05d90f450c
commit
58b776e440
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
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")
|
JOOMLA_DB_PASSWORD=$(cat "$JOOMLA_DB_PASSWORD_FILE")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user