mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-24 06:40:09 +00:00
fix: use chk_enabled to determine if TAR1090_ENABLE_AC_DB is enabled (#108)
This commit is contained in:
commit
d6316a41cc
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ if [[ -n "$READSB_NET_VRS_PORT" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure the db file exists, and if it does, use it
|
# 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
|
if [[ -e $TAR1090_UPDATE_DIR/aircraft.csv.gz ]]; then
|
||||||
READSB_CMD+=("--db-file=$TAR1090_UPDATE_DIR/aircraft.csv.gz")
|
READSB_CMD+=("--db-file=$TAR1090_UPDATE_DIR/aircraft.csv.gz")
|
||||||
elif [[ -e $TAR1090_INSTALL_DIR/aircraft.csv.gz ]]; then
|
elif [[ -e $TAR1090_INSTALL_DIR/aircraft.csv.gz ]]; then
|
||||||
|
|
Loading…
Reference in a new issue