From b842f4a8ede5d0ca2c2d772d09a271630ab335dc Mon Sep 17 00:00:00 2001 From: eric1tran Date: Mon, 7 Mar 2022 21:09:42 +0000 Subject: [PATCH] skyaware lighttpd module replaced dump1090-fa. We can disable dump1090-fa module now --- debian/dump1090-fa.postinst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/dump1090-fa.postinst b/debian/dump1090-fa.postinst index c5caa28..f78a61e 100644 --- a/debian/dump1090-fa.postinst +++ b/debian/dump1090-fa.postinst @@ -81,6 +81,16 @@ case "$1" in fi + # dump1090-fa lighttpd module deprecated in 7.2 + if dpkg --compare-versions "$2" lt "7.2" + then + if [ -e /etc/lighttpd/conf-enabled/89-dump1090-fa.conf ] + then + echo "Disabling deprecated lighttpd dump1090-fa module..." >&2 + lighty-disable-mod dump1090-fa || true + fi + fi + echo "Restarting lighttpd.." >&2 invoke-rc.d lighttpd restart || true ;;