From 6897e1f72c139572f4b7d61a12dfdfd6268337a5 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 16 Sep 2022 08:44:31 +0200 Subject: [PATCH] use old readsb version when installing on jessie or older --- update.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 2896d79..161a295 100755 --- a/update.sh +++ b/update.sh @@ -61,7 +61,10 @@ function aptInstall() { } -packages="git wget unzip curl build-essential python3-dev socat python3-venv ncurses-dev ncurses-bin uuid-runtime libzstd-dev libzstd1 zlib1g-dev zlib1g" +packages="git wget unzip curl build-essential python3-dev socat python3-venv ncurses-dev ncurses-bin uuid-runtime zlib1g-dev zlib1g" +if ! grep -E 'wheezy|jessie' /etc/os-release -qs; then + packages+=" libzstd-dev libzstd1" +fi if command -v apt &>/dev/null; then aptInstall $packages @@ -265,6 +268,9 @@ echo 70 READSB_REPO="https://github.com/adsbxchange/readsb.git" READSB_BRANCH="master" +if grep -E 'wheezy|jessie' /etc/os-release -qs; then + READSB_BRANCH="jessie" +fi READSB_VERSION="$(git ls-remote $READSB_REPO $READSB_BRANCH | cut -f1 || echo $RANDOM-$RANDOM )" READSB_GIT="$IPATH/readsb-git" READSB_BIN="$IPATH/feed-adsbx"