From 5db28d4e5454f02c562ad776e33cd48496fe6e03 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Mon, 16 Jul 2018 12:12:25 +0100 Subject: Fix ANONYMOUS_METHODS --- 2.4/docker-entrypoint.sh | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3