From e7d39c9abb03da01aa1b8fcb3c9e3c442f0fcbe3 Mon Sep 17 00:00:00 2001 From: eric1tran Date: Mon, 8 Mar 2021 19:29:41 +0000 Subject: [PATCH] Enable skyaware module in postinst file --- debian/dump1090-fa.postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/dump1090-fa.postinst b/debian/dump1090-fa.postinst index d533ccf..01f661f 100644 --- a/debian/dump1090-fa.postinst +++ b/debian/dump1090-fa.postinst @@ -63,6 +63,13 @@ case "$1" in fi fi + if dpkg --compare-versions "$2" lt-nl "5.0" + then + echo "Enabling lighttpd skyaware module.." >&2 + lighty-enable-mod skyaware || true + + fi + echo "Restarting lighttpd.." >&2 invoke-rc.d lighttpd restart || true ;;