Skip to content

Commit 37db76a

Browse files
committed
Add fpm handling in docker-entrypoint.sh
1 parent ea9a5ca commit 37db76a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apache/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
if [[ "$1" == apache2* ]]; then
4+
if [[ "$1" == apache2* ]] || [[ "$1" == php-fpm ]]; then
55
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
66
if [ -z "$WORDPRESS_DB_HOST" ]; then
77
WORDPRESS_DB_HOST='mysql'

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
if [[ "$1" == apache2* ]]; then
4+
if [[ "$1" == apache2* ]] || [[ "$1" == php-fpm ]]; then
55
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
66
if [ -z "$WORDPRESS_DB_HOST" ]; then
77
WORDPRESS_DB_HOST='mysql'

fpm/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
if [[ "$1" == apache2* ]]; then
4+
if [[ "$1" == apache2* ]] || [[ "$1" == php-fpm ]]; then
55
if [ -n "$MYSQL_PORT_3306_TCP" ]; then
66
if [ -z "$WORDPRESS_DB_HOST" ]; then
77
WORDPRESS_DB_HOST='mysql'

0 commit comments

Comments
 (0)