Commit cb06647b authored by Helmut Grohne's avatar Helmut Grohne

Merge branch gps-guest/master into master

Merge request !10.
parents c0f7f347 4e8c4332
......@@ -10,4 +10,7 @@ server.modules += ( "mod_webdav" )
## The full path to the file you would like to use as your db file. This
## is required for webdav props and locks.
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
webdav.sqlite-db-name = "/var/cache/lighttpd/lighttpd.webdav.db"
## Note: while /var/cache/lighttpd/ is persistent across reboots,
## it is recommended to use a location such as /var/db/lighttpd/
## and to back up that location if the data in the db is important.
......@@ -36,9 +36,18 @@ if [ "$1" != status ]; then
# be sure there is a /var/run/lighttpd, even with tmpfs
# The directory is defined as volatile and may thus be non-existing
# after a boot (DPM §9.3.2)
if ! dpkg-statoverride --list /var/run/lighttpd >/dev/null 2>&1; then
install -d -o www-data -g www-data -m 0750 "/var/run/lighttpd"
fi
owner=www-data
group=www-data
[ -d /var/cache/lighttpd ] || \
install -d -o $owner -g $group -m 0750 "/var/cache/lighttpd"
[ -d /var/cache/lighttpd/compress ] || \
install -d -o $owner -g $group -m 0750 "/var/cache/lighttpd/compress"
[ -d /var/cache/lighttpd/uploads ] || \
install -d -o $owner -g $group -m 0750 "/var/cache/lighttpd/uploads"
[ -d /var/log/lighttpd ] || \
install -d -o $owner -g $group -m 0750 "/var/log/lighttpd"
[ -d /var/run/lighttpd ] || \
install -d -o $owner -g $group -m 0750 "/var/run/lighttpd"
fi
. /lib/lsb/init-functions
......
d /run/lighttpd 0750 www-data www-data -
d /var/log/lighttpd 0750 www-data www-data -
d /var/cache/lighttpd 0750 www-data www-data -
d /var/cache/lighttpd/compress 0750 www-data www-data -
d /var/cache/lighttpd/uploads 0750 www-data www-data -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment