Try to avoid conflicting with other lighttpd config that
touches the stat cache settings.
This commit is contained in:
parent
abc30ff656
commit
cfb02c1a7c
4 changed files with 29 additions and 7 deletions
9
debian/dump1090-fa.postinst
vendored
9
debian/dump1090-fa.postinst
vendored
|
|
@ -34,6 +34,15 @@ case "$1" in
|
|||
# set up lighttpd
|
||||
echo "Enabling lighttpd integration.." >&2
|
||||
lighty-enable-mod dump1090-fa || true
|
||||
|
||||
# only enable the statcache config if there is nothing else around that already
|
||||
# configures it, because lighttpd fails if it's configured twice
|
||||
if ! grep -q -E '^\S*server.stat-cache-engine' /etc/lighttpd/conf-enabled/*.conf
|
||||
then
|
||||
echo "Enabling lighttpd integration (stat cache).." >&2
|
||||
lighty-enable-mod dump1090-fa-statcache || true
|
||||
fi
|
||||
|
||||
echo "Restarting lighttpd.." >&2
|
||||
invoke-rc.d lighttpd restart || true
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue