Skip to content

Commit bdaae2a

Browse files
author
Raphaël Droz
authored
fixes for /bin/sh
1 parent 3e3f0aa commit bdaae2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
126126
: "${WORDPRESS_DB_PASSWORD:=}"
127127
: "${WORDPRESS_DB_NAME:=wordpress}"
128128

129-
if [ -e wp-config.php && -n "$NO_AUTO_CONFIG" ]; then
129+
if [ -e wp-config.php ] && [ "${AUTO_CONFIG:-0}" == 1 ]; then
130130
exec "$@"
131131
fi
132-
if [ -e wp-config.php && ! -w wp-config.php ]; then
132+
if [ -e wp-config.php ] && [ ! -w wp-config.php ]; then
133133
exec "$@"
134134
fi
135135
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks

0 commit comments

Comments
 (0)