summaryrefslogtreecommitdiffstats
path: root/2.4
diff options
context:
space:
mode:
Diffstat (limited to '2.4')
-rw-r--r--2.4/Dockerfile1
-rwxr-xr-x2.4/docker-entrypoint.sh5
2 files changed, 5 insertions, 1 deletions
diff --git a/2.4/Dockerfile b/2.4/Dockerfile
index e18b21a..151bd38 100644
--- a/2.4/Dockerfile
+++ b/2.4/Dockerfile
@@ -20,7 +20,6 @@ RUN set -ex; \
# Create empty default DocumentRoot.
mkdir -p "/var/www/html"; \
# Create directories for Dav data and lock database.
- mkdir -p "/var/lib/dav"; \
mkdir -p "/var/lib/dav/data"; \
touch "/var/lib/dav/DavLock"; \
chown -R www-data:www-data "/var/lib/dav"; \
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 "$@"