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:
parent
05d90f450c
commit
58b776e440
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user