Skip to content

Commit

Permalink
fix: use chk_enabled to determine if TAR1090_ENABLE_AC_DB is enabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen authored Jul 11, 2024
2 parents aa4bd05 + 83cc913 commit d6316a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/readsb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ if [[ -n "$READSB_NET_VRS_PORT" ]]; then
fi

# make sure the db file exists, and if it does, use it
if [[ "$TAR1090_ENABLE_AC_DB" == "true" ]]; then
if chk_enabled "$TAR1090_ENABLE_AC_DB"; 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
Expand Down

0 comments on commit d6316a4

Please sign in to comment.