From 4e72d47c8607cb19340c57dd7195bd728a689936 Mon Sep 17 00:00:00 2001 From: hub Date: Wed, 28 Sep 2022 11:57:02 +0200 Subject: [PATCH 1/2] apply conf dir owner change for www-data at container start --- base/run.sh | 5 ++++- full/run.sh | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/base/run.sh b/base/run.sh index 1768209..e9490e0 100644 --- a/base/run.sh +++ b/base/run.sh @@ -1,2 +1,5 @@ #!/bin/bash -exec /sbin/my_init \ No newline at end of file + +chown -R www-data:www-data /var/www/html/conf + +exec /sbin/my_init diff --git a/full/run.sh b/full/run.sh index 502437a..8566ee6 100644 --- a/full/run.sh +++ b/full/run.sh @@ -1,5 +1,7 @@ #!/bin/bash +chown -R www-data:www-data /var/www/html/conf + VOLUME_HOME="/var/lib/mysql" if [[ ! -d $VOLUME_HOME/mysql ]]; then @@ -12,4 +14,4 @@ else echo "=> Using an existing volume of MySQL" fi -exec /sbin/my_init \ No newline at end of file +exec /sbin/my_init From 3740bb07d87e3f751c41c3b9db92f1d98c0edb04 Mon Sep 17 00:00:00 2001 From: hub Date: Thu, 29 Sep 2022 11:38:16 +0200 Subject: [PATCH 2/2] include /var/www/html/data --- base/run.sh | 1 + full/run.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/base/run.sh b/base/run.sh index e9490e0..80293aa 100644 --- a/base/run.sh +++ b/base/run.sh @@ -1,5 +1,6 @@ #!/bin/bash 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 8566ee6..ad597a0 100644 --- a/full/run.sh +++ b/full/run.sh @@ -1,6 +1,7 @@ #!/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"