Merge pull request #63 from rgeissert/debian-package-fixes

Use invoke-rc.d to restart lighttpd as per Debian policy
This commit is contained in:
Oliver Jowett 2015-08-17 17:37:00 +01:00
commit 3b4c5c5889

View file

@ -126,7 +126,7 @@ case "$1" in
if [ -e /etc/lighttpd/conf-enabled/89-dump1090.conf ]; then
if dpkg --compare-versions "$2" le "1.14"; then
echo "Restarting lighttpd.." >&2
service lighttpd restart || echo "Warning: lighttpd failed to restart." >&2
invoke-rc.d lighttpd restart || echo "Warning: lighttpd failed to restart." >&2
fi
fi
;;