summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Nguyen <j@jamielinux.com>2018-07-16 11:59:35 +0100
committerJamie Nguyen <j@jamielinux.com>2018-07-16 11:59:35 +0100
commitd2f09d51abe513ca3dd3a9f880fd53e1139edf08 (patch)
treefb74f9a82abb6373fce702855c8766b5aad4d8cc
parenta347a4ae65ec8e54fc15d012ad557de1035f4a12 (diff)
downloadapache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.gz
apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.bz2
apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.xz
apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.zip
Initialize /var/lib/dav in docker-entrypoint.sh
-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 "$@"