diff options
Diffstat (limited to '2.4/docker-entrypoint.sh')
-rwxr-xr-x | 2.4/docker-entrypoint.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 "$@" |