mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-24 23:00:11 +00:00
adsbx-stats: use exec
This commit is contained in:
parent
7596bcfcbf
commit
7748ff4de1
1 changed files with 4 additions and 4 deletions
|
@ -24,13 +24,13 @@ s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")" --args)
|
|||
# Check if ADSBExchange is configured
|
||||
if ! grep -i adsbexchange.com <<< "$ULTRAFEEDER_CONFIG" >/dev/null 2>&1; then
|
||||
"${s6wrap[@]}" echo "AdsbExchange not configured - no stats package needed"
|
||||
sleep infinity & wait $!
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
# Check if ADSBExchange stats are disabled
|
||||
if chk_disabled "$ADSBX_STATS" ; then
|
||||
"${s6wrap[@]}" echo "AdsbExchange stats disabled"
|
||||
sleep infinity & wait $!
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
# prep work:
|
||||
|
@ -43,7 +43,7 @@ fi
|
|||
if [[ ! -f /usr/local/bin/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 configured, but cannot download stats package! AdsbExchange will be fed but stats will not be available"
|
||||
sleep infinity & wait $!
|
||||
exec sleep infinity
|
||||
fi
|
||||
chmod 755 /usr/local/bin/json-status
|
||||
fi
|
||||
|
@ -89,4 +89,4 @@ fi
|
|||
} &
|
||||
|
||||
"${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status"
|
||||
"${s6wrap[@]}" /usr/local/bin/json-status
|
||||
exec "${s6wrap[@]}" /usr/local/bin/json-status
|
||||
|
|
Loading…
Reference in a new issue