Skip to content

Commit

Permalink
make adsbx json-status download from our own repo instead of from Ads…
Browse files Browse the repository at this point in the history
…bExchange
  • Loading branch information
kx1t committed Oct 14, 2023
1 parent bee949c commit fcc7317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/etc/s6-overlay/scripts/adsbx-stats
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi
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
"${s6wrap[@]}" echo "ERROR: AdsbExchange configure, but cannot download stats package! AdsbExchange will be fed but stats will not be available"
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 configured, but cannot download stats package! AdsbExchange will be fed but stats will not be available"
sleep infinity & wait $!
fi
chmod 755 /usr/local/bin/json-status
Expand Down Expand Up @@ -68,4 +68,4 @@ fi
} &

"${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status"
"${s6wrap[@]}" /usr/local/bin/json-status
"${s6wrap[@]}" /usr/local/bin/json-status

0 comments on commit fcc7317

Please sign in to comment.