From d2f09d51abe513ca3dd3a9f880fd53e1139edf08 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Mon, 16 Jul 2018 11:59:35 +0100 Subject: Initialize /var/lib/dav in docker-entrypoint.sh --- 2.4/docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to '2.4/docker-entrypoint.sh') diff --git a/2.4/docker-entrypoint.sh b/2.4/docker-entrypoint.sh index 74da63b..c37c374 100755 --- a/2.4/docker-entrypoint.sh +++ b/2.4/docker-entrypoint.sh @@ -97,4 +97,9 @@ if [ -e /privkey.pem ] && [ -e /cert.pem ]; then ln -s ../sites-available/default-ssl.conf "$HTTPD_PREFIX/conf/sites-enabled"; \ fi +# Create directories for Dav data and lock database. +mkdir -p "/var/lib/dav/data" +touch "/var/lib/dav/DavLock" +chown -R www-data:www-data "/var/lib/dav" + exec "$@" -- cgit v1.2.3