diff options
author | Jamie Nguyen <j@jamielinux.com> | 2018-07-16 12:12:25 +0100 |
---|---|---|
committer | Jamie Nguyen <j@jamielinux.com> | 2018-07-16 12:12:25 +0100 |
commit | 5db28d4e5454f02c562ad776e33cd48496fe6e03 (patch) | |
tree | bfcbe15f90920fe2dfdc47631348517907639c69 | |
parent | a0f0dbb636f4bd47e8c37811c77ce2ad18af1a8f (diff) | |
download | apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.gz apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.bz2 apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.xz apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.zip |
Fix ANONYMOUS_METHODS
-rwxr-xr-x | 2.4/docker-entrypoint.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/2.4/docker-entrypoint.sh b/2.4/docker-entrypoint.sh index c37c374..d5f8234 100755 --- a/2.4/docker-entrypoint.sh +++ b/2.4/docker-entrypoint.sh @@ -69,6 +69,7 @@ if [ "x$ANONYMOUS_METHODS" != "x" ]; then sed -e "s/Require valid-user/Require all granted/" \ -i "$HTTPD_PREFIX/conf/conf-available/dav.conf" else + ANONYMOUS_METHODS="`printf '%s\n' "$ANONYMOUS_METHODS" | tr ',' ' '`" sed -e "/Require valid-user/a\ \ \ \ Require method $ANONYMOUS_METHODS" \ -i "$HTTPD_PREFIX/conf/conf-available/dav.conf" fi |