From 761df76b3ac77d0700addf369a55de8870613215 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 13 Apr 2024 23:52:17 +0200 Subject: [PATCH] aircraft.csv.gz path changes due to tar1090-update changes --- rootfs/etc/s6-overlay/scripts/readsb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index d8ee014..ba29c24 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -254,8 +254,11 @@ if [[ -n "$READSB_NET_VRS_PORT" ]]; then fi # make sure the db file exists, and if it does, use it -if [[ -e $TAR1090_INSTALL_DIR/aircraft.csv.gz ]]; then - if [[ "$TAR1090_ENABLE_AC_DB" == "true" ]]; then +if [[ "$TAR1090_ENABLE_AC_DB" == "true" ]]; then + if [[ -e $TAR1090_UPDATE_DIR/aircraft.csv.gz ]]; then + READSB_CMD+=("--db-file=$TAR1090_UPDATE_DIR/aircraft.csv.gz") + elif [[ -e $TAR1090_INSTALL_DIR/aircraft.csv.gz ]]; then + # fallback to container supplied not updated csv.gz READSB_CMD+=("--db-file=$TAR1090_INSTALL_DIR/aircraft.csv.gz") fi fi