Skip to content

Commit 205828e

Browse files
author
Raphaël Droz
authored
omit wp-config.php edit if it was mounted readonly
1 parent d1ce5be commit 205828e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
129129
if [ -e wp-config.php && -n $NO_AUTO_CONFIG ]; then
130130
exec "$@"
131131
fi
132+
if [ -e wp-config.php && ! -w wp-config.php ]; then
133+
exec "$@"
134+
fi
132135
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
133136
# https://github.com/docker-library/wordpress/issues/116
134137
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4

0 commit comments

Comments
 (0)