File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ RUN set -eux; \
1515 a2enconf remoteip; \
1616# https://github.com/docker-library/wordpress/issues/383#issuecomment-507886512
1717# (replace all instances of "%h" with "%a" in LogFormat)
18- find /etc/apache2 -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1%a\2/g' '{}' +
18+ find /etc/apache2 -type f - name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1%a\2/g' '{}' +
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ RUN set -eux; \
7979 a2enconf remoteip; \
8080# https://github.com/docker-library/wordpress/issues/383#issuecomment-507886512
8181# (replace all instances of "%h" with "%a" in LogFormat)
82- find /etc/apache2 -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
82+ find /etc/apache2 -type f - name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
8383
8484VOLUME /var/www/html
8585
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ RUN set -eux; \
7979 a2enconf remoteip; \
8080# https://github.com/docker-library/wordpress/issues/383#issuecomment-507886512
8181# (replace all instances of "%h" with "%a" in LogFormat)
82- find /etc/apache2 -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
82+ find /etc/apache2 -type f - name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
8383
8484VOLUME /var/www/html
8585
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ RUN set -eux; \
8080 a2enconf remoteip; \
8181# https://github.com/docker-library/wordpress/issues/383#issuecomment-507886512
8282# (replace all instances of "%h" with "%a" in LogFormat)
83- find /etc/apache2 -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
83+ find /etc/apache2 -type f - name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1 %a\2 /g' '{}' +
8484
8585VOLUME /var/www/html
8686
You can’t perform that action at this time.
0 commit comments