diff options
author | Jamie Nguyen <j@jamielinux.com> | 2018-07-16 11:59:35 +0100 |
---|---|---|
committer | Jamie Nguyen <j@jamielinux.com> | 2018-07-16 11:59:35 +0100 |
commit | d2f09d51abe513ca3dd3a9f880fd53e1139edf08 (patch) | |
tree | fb74f9a82abb6373fce702855c8766b5aad4d8cc /2.4/docker-entrypoint.sh | |
parent | a347a4ae65ec8e54fc15d012ad557de1035f4a12 (diff) | |
download | apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.gz apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.bz2 apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.tar.xz apache-d2f09d51abe513ca3dd3a9f880fd53e1139edf08.zip |
Initialize /var/lib/dav in docker-entrypoint.sh
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 "$@" |