diff --git a/beta/php8.1/apache/docker-entrypoint.sh b/beta/php8.1/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.1/apache/docker-entrypoint.sh +++ b/beta/php8.1/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.1/fpm-alpine/docker-entrypoint.sh b/beta/php8.1/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.1/fpm-alpine/docker-entrypoint.sh +++ b/beta/php8.1/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.1/fpm/docker-entrypoint.sh b/beta/php8.1/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.1/fpm/docker-entrypoint.sh +++ b/beta/php8.1/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.2/apache/docker-entrypoint.sh b/beta/php8.2/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.2/apache/docker-entrypoint.sh +++ b/beta/php8.2/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.2/fpm-alpine/docker-entrypoint.sh b/beta/php8.2/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.2/fpm-alpine/docker-entrypoint.sh +++ b/beta/php8.2/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.2/fpm/docker-entrypoint.sh b/beta/php8.2/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.2/fpm/docker-entrypoint.sh +++ b/beta/php8.2/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.3/apache/docker-entrypoint.sh b/beta/php8.3/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.3/apache/docker-entrypoint.sh +++ b/beta/php8.3/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.3/fpm-alpine/docker-entrypoint.sh b/beta/php8.3/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.3/fpm-alpine/docker-entrypoint.sh +++ b/beta/php8.3/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.3/fpm/docker-entrypoint.sh b/beta/php8.3/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.3/fpm/docker-entrypoint.sh +++ b/beta/php8.3/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.4/apache/docker-entrypoint.sh b/beta/php8.4/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.4/apache/docker-entrypoint.sh +++ b/beta/php8.4/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.4/fpm-alpine/docker-entrypoint.sh b/beta/php8.4/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.4/fpm-alpine/docker-entrypoint.sh +++ b/beta/php8.4/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/beta/php8.4/fpm/docker-entrypoint.sh b/beta/php8.4/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/beta/php8.4/fpm/docker-entrypoint.sh +++ b/beta/php8.4/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.1/apache/docker-entrypoint.sh b/latest/php8.1/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.1/apache/docker-entrypoint.sh +++ b/latest/php8.1/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.1/fpm-alpine/docker-entrypoint.sh b/latest/php8.1/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.1/fpm-alpine/docker-entrypoint.sh +++ b/latest/php8.1/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.1/fpm/docker-entrypoint.sh b/latest/php8.1/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.1/fpm/docker-entrypoint.sh +++ b/latest/php8.1/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.2/apache/docker-entrypoint.sh b/latest/php8.2/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.2/apache/docker-entrypoint.sh +++ b/latest/php8.2/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.2/fpm-alpine/docker-entrypoint.sh b/latest/php8.2/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.2/fpm-alpine/docker-entrypoint.sh +++ b/latest/php8.2/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.2/fpm/docker-entrypoint.sh b/latest/php8.2/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.2/fpm/docker-entrypoint.sh +++ b/latest/php8.2/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.3/apache/docker-entrypoint.sh b/latest/php8.3/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.3/apache/docker-entrypoint.sh +++ b/latest/php8.3/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.3/fpm-alpine/docker-entrypoint.sh b/latest/php8.3/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.3/fpm-alpine/docker-entrypoint.sh +++ b/latest/php8.3/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.3/fpm/docker-entrypoint.sh b/latest/php8.3/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.3/fpm/docker-entrypoint.sh +++ b/latest/php8.3/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.4/apache/docker-entrypoint.sh b/latest/php8.4/apache/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.4/apache/docker-entrypoint.sh +++ b/latest/php8.4/apache/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.4/fpm-alpine/docker-entrypoint.sh b/latest/php8.4/fpm-alpine/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.4/fpm-alpine/docker-entrypoint.sh +++ b/latest/php8.4/fpm-alpine/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@" diff --git a/latest/php8.4/fpm/docker-entrypoint.sh b/latest/php8.4/fpm/docker-entrypoint.sh index 1034f1dec1..7cd0bbdf41 100755 --- a/latest/php8.4/fpm/docker-entrypoint.sh +++ b/latest/php8.4/fpm/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then +if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ] || [ -n "$WORDPRESS_INIT_ONLY" ]; then uid="$(id -u)" gid="$(id -g)" if [ "$uid" = '0' ]; then @@ -96,4 +96,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then fi fi +if [ -n "$WORDPRESS_INIT_ONLY" ]; then + echo >&2 "WordPress initialization complete; exiting" + exit 0 +fi + exec "$@"