From 9cf539ec6a963ae63ecca3e626813bedd61ff680 Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Mon, 12 Jan 2015 23:19:17 +0100 Subject: [PATCH] Fixes impossible creation of media during first run. --- dockerfiles/services/wordpress/run-wordpress.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfiles/services/wordpress/run-wordpress.sh b/dockerfiles/services/wordpress/run-wordpress.sh index 0e60065..962883b 100644 --- a/dockerfiles/services/wordpress/run-wordpress.sh +++ b/dockerfiles/services/wordpress/run-wordpress.sh @@ -4,11 +4,6 @@ if [ ! "$(ls -A /app/wp-content)" ]; then cp -av /wp-content/* /app/wp-content/ fi -chown -R root:www-data /app -chmod -R 650 /app -chmod -R 770 /app/wp-content/ -chmod -R 660 /app/.htaccess - DB_HOST=${DB_PORT_3306_TCP_ADDR:-${DB_HOST}} DB_HOST=${DB_1_PORT_3306_TCP_ADDR:-${DB_HOST}} DB_PORT=${DB_PORT_3306_TCP_PORT:-${DB_PORT}} @@ -63,5 +58,10 @@ else exit $DB_CONNECTABLE fi +chown -R root:www-data /app +chmod -R 650 /app +chmod -R 770 /app/wp-content/ +chmod -R 660 /app/.htaccess + exec /run.sh -- GitLab