diff --git a/base/run.sh b/base/run.sh index 1768209..80293aa 100644 --- a/base/run.sh +++ b/base/run.sh @@ -1,2 +1,6 @@ #!/bin/bash -exec /sbin/my_init \ No newline at end of file + +chown -R www-data:www-data /var/www/html/conf +chown -R www-data:www-data /var/www/html/data + +exec /sbin/my_init diff --git a/full/run.sh b/full/run.sh index 502437a..ad597a0 100644 --- a/full/run.sh +++ b/full/run.sh @@ -1,5 +1,8 @@ #!/bin/bash +chown -R www-data:www-data /var/www/html/conf +chown -R www-data:www-data /var/www/html/data + VOLUME_HOME="/var/lib/mysql" if [[ ! -d $VOLUME_HOME/mysql ]]; then @@ -12,4 +15,4 @@ else echo "=> Using an existing volume of MySQL" fi -exec /sbin/my_init \ No newline at end of file +exec /sbin/my_init