34
3
mirror of https://github.com/joomla-docker/docker-joomla.git synced 2025-01-25 08:08:41 +00:00

Wrap script in an if statement

See ba89e6a183 for details
This commit is contained in:
Michael Babker 2015-08-04 14:07:29 -04:00
parent 8df265f11a
commit 40426bb763
3 changed files with 177 additions and 171 deletions

View File

@ -2,6 +2,7 @@
set -e
if [[ "$1" == apache2* ]]; then
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
if [ -z "$JOOMLA_DB_HOST" ]; then
JOOMLA_DB_HOST='mysql'
@ -66,5 +67,6 @@ echo >&2 "Database Username: $JOOMLA_DB_USER"
echo >&2 "Database Password: $JOOMLA_DB_PASSWORD"
echo >&2
echo >&2 "========================================================================"
fi
exec "$@"

View File

@ -2,6 +2,7 @@
set -e
if [[ "$1" == apache2* ]]; then
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
if [ -z "$JOOMLA_DB_HOST" ]; then
JOOMLA_DB_HOST='mysql'
@ -66,5 +67,6 @@ echo >&2 "Database Username: $JOOMLA_DB_USER"
echo >&2 "Database Password: $JOOMLA_DB_PASSWORD"
echo >&2
echo >&2 "========================================================================"
fi
exec "$@"

View File

@ -2,6 +2,7 @@
set -e
if [[ "$1" == apache2* ]]; then
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
if [ -z "$JOOMLA_DB_HOST" ]; then
JOOMLA_DB_HOST='mysql'
@ -66,5 +67,6 @@ echo >&2 "Database Username: $JOOMLA_DB_USER"
echo >&2 "Database Password: $JOOMLA_DB_PASSWORD"
echo >&2
echo >&2 "========================================================================"
fi
exec "$@"