1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 21:30:11 +00:00

make adsbx json-status download from our own repo instead of from AdsbExchange

This commit is contained in:
kx1t 2023-10-14 14:03:46 -04:00
parent bee949cdd6
commit fcc7317332

View file

@ -25,8 +25,8 @@ if [[ ! -f /etc/default/adsbexchange-stats ]]; then
echo -e "UUID_FILE=/run/uuid\nJSON_PATHS=(\"/run/readsb\")" > /etc/default/adsbexchange-stats echo -e "UUID_FILE=/run/uuid\nJSON_PATHS=(\"/run/readsb\")" > /etc/default/adsbexchange-stats
fi fi
if [[ ! -f /usr/local/bin/json-status ]]; then if [[ ! -f /usr/local/bin/json-status ]]; then
if ! curl -sSL -o /usr/local/bin/json-status https://raw.githubusercontent.com/ADSBexchange/adsbexchange-stats/master/json-status; then if ! curl -sSL -o /usr/local/bin/json-status https://raw.githubusercontent.com/sdr-enthusiasts/docker-adsb-ultrafeeder/main/downloads/adsbexchange-json-status; then
"${s6wrap[@]}" echo "ERROR: AdsbExchange configure, but cannot download stats package! AdsbExchange will be fed but stats will not be available" "${s6wrap[@]}" echo "ERROR: AdsbExchange configured, but cannot download stats package! AdsbExchange will be fed but stats will not be available"
sleep infinity & wait $! sleep infinity & wait $!
fi fi
chmod 755 /usr/local/bin/json-status chmod 755 /usr/local/bin/json-status
@ -68,4 +68,4 @@ fi
} & } &
"${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status" "${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status"
"${s6wrap[@]}" /usr/local/bin/json-status "${s6wrap[@]}" /usr/local/bin/json-status