Commit 4e8c4332 authored by Glenn Strauss's avatar Glenn Strauss

remote dpkg-statoverride from lighttpd.init

For sysvinit, create dirs (as is listed in lighttpd.tmpfiles.conf)
parent 4590678b
......@@ -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
......
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