File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ ENV WORDPRESS_SHA1 9e9745bb8a1166622de866076eac73a49cb3eba0
18
18
RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_UPSTREAM_VERSION}.tar.gz \
19
19
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
20
20
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
21
- && rm wordpress.tar.gz
21
+ && rm wordpress.tar.gz \
22
+ && chown -R www-data:www-data /usr/src/wordpress
22
23
23
24
COPY docker-entrypoint.sh /entrypoint.sh
24
25
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
56
56
</IfModule>
57
57
# END WordPress
58
58
EOF
59
+ chown www-data:www-data .htaccess
59
60
fi
60
61
fi
61
62
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
70
71
}
71
72
72
73
EOPHP
74
+ chown www-data:www-data wp-config.php
73
75
fi
74
76
75
77
set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140
142
$mysql->close();
141
143
EOPHP
142
144
143
- chown -R www-data:www-data .
144
-
145
145
exec " $@ "
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
56
56
</IfModule>
57
57
# END WordPress
58
58
EOF
59
+ chown www-data:www-data .htaccess
59
60
fi
60
61
fi
61
62
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
70
71
}
71
72
72
73
EOPHP
74
+ chown www-data:www-data wp-config.php
73
75
fi
74
76
75
77
set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140
142
$mysql->close();
141
143
EOPHP
142
144
143
- chown -R www-data:www-data .
144
-
145
145
exec " $@ "
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ ENV WORDPRESS_SHA1 9e9745bb8a1166622de866076eac73a49cb3eba0
16
16
RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_UPSTREAM_VERSION}.tar.gz \
17
17
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
18
18
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
19
- && rm wordpress.tar.gz
19
+ && rm wordpress.tar.gz \
20
+ && chown -R www-data:www-data /usr/src/wordpress
20
21
21
22
COPY docker-entrypoint.sh /entrypoint.sh
22
23
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
56
56
</IfModule>
57
57
# END WordPress
58
58
EOF
59
+ chown www-data:www-data .htaccess
59
60
fi
60
61
fi
61
62
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
70
71
}
71
72
72
73
EOPHP
74
+ chown www-data:www-data wp-config.php
73
75
fi
74
76
75
77
set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140
142
$mysql->close();
141
143
EOPHP
142
144
143
- chown -R www-data:www-data .
144
-
145
145
exec " $@ "
You can’t perform that action at this time.
0 commit comments