From 772950ed9e2856a034af19fcdfb06085d2045f8e Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Thu, 7 Jan 2016 14:53:58 -0500 Subject: [PATCH] Allow initialization to run on FPM too (Fix #5) --- apache/docker-entrypoint.sh | 2 +- docker-entrypoint.sh | 2 +- fpm/docker-entrypoint.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index 3b2db7a..0f1acae 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e -if [[ "$1" == apache2* ]]; then +if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then if [ -n "$MYSQL_PORT_3306_TCP" ]; then if [ -z "$JOOMLA_DB_HOST" ]; then JOOMLA_DB_HOST='mysql' diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 3b2db7a..0f1acae 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e -if [[ "$1" == apache2* ]]; then +if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then if [ -n "$MYSQL_PORT_3306_TCP" ]; then if [ -z "$JOOMLA_DB_HOST" ]; then JOOMLA_DB_HOST='mysql' diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index 3b2db7a..0f1acae 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e -if [[ "$1" == apache2* ]]; then +if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then if [ -n "$MYSQL_PORT_3306_TCP" ]; then if [ -z "$JOOMLA_DB_HOST" ]; then JOOMLA_DB_HOST='mysql'