summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Nguyen <j@jamielinux.com>2018-07-16 12:12:25 +0100
committerJamie Nguyen <j@jamielinux.com>2018-07-16 12:12:25 +0100
commit5db28d4e5454f02c562ad776e33cd48496fe6e03 (patch)
treebfcbe15f90920fe2dfdc47631348517907639c69
parenta0f0dbb636f4bd47e8c37811c77ce2ad18af1a8f (diff)
downloadapache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.gz
apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.bz2
apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.tar.xz
apache-5db28d4e5454f02c562ad776e33cd48496fe6e03.zip
Fix ANONYMOUS_METHODS
-rwxr-xr-x2.4/docker-entrypoint.sh1
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