Skip to content
Snippets Groups Projects
Commit 9cf539ec authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Fixes impossible creation of media during first run.

parent 9023f8d9
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,6 @@ if [ ! "$(ls -A /app/wp-content)" ]; then ...@@ -4,11 +4,6 @@ if [ ! "$(ls -A /app/wp-content)" ]; then
cp -av /wp-content/* /app/wp-content/ cp -av /wp-content/* /app/wp-content/
fi 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_PORT_3306_TCP_ADDR:-${DB_HOST}}
DB_HOST=${DB_1_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}} DB_PORT=${DB_PORT_3306_TCP_PORT:-${DB_PORT}}
...@@ -63,5 +58,10 @@ else ...@@ -63,5 +58,10 @@ else
exit $DB_CONNECTABLE exit $DB_CONNECTABLE
fi 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 exec /run.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment