Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.2/apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.2/fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.2/fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.3/apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.3/fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.3/fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.4/apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.4/fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down
6 changes: 3 additions & 3 deletions php7.4/fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
fi

if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
# if the directory exists and WordPress doesn't appear to be installed AND the permissions of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ] && [ "$(stat -c '%u:%g' .)" = '0:0' ]; then
chown "$user:$group" .
# if the directory exists and WordPress doesn't appear to be installed, let's chown it (likely a Docker-created directory) of it are root:root, let's chown it (likely a Docker-created directory)
if [ "$(id -u)" = '0' ]; then
chown -R "$user:$group" .
fi

echo >&2 "WordPress not found in $PWD - copying now..."
Expand Down