mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-12-24 21:32:00 +00:00
cleanup
This commit is contained in:
parent
7b99bd5d47
commit
6fb24161d8
1 changed files with 5 additions and 3 deletions
|
@ -248,7 +248,7 @@ do
|
|||
MLAT_PARAM+=(--user "${name}")
|
||||
else
|
||||
rnd="${RANDOM}"
|
||||
"${s6wrap[@]}" --args echo "WARNING: MLAT_USER is not set - using random number \"${rnd}\" as MLAT_USER"
|
||||
"${s6wrap[@]}" --prepend="$(basename "$0")][${servername}" --args echo "WARNING: MLAT_USER is not set - using random number \"${rnd}\" as MLAT_USER"
|
||||
MLAT_PARAM+=(--user "${rnd}")
|
||||
fi
|
||||
|
||||
|
@ -279,12 +279,14 @@ do
|
|||
fi
|
||||
|
||||
# Add UUID to instance
|
||||
if [[ -n "$uuid_arg" ]]; then
|
||||
if chk_disabled "$uuid_arg"; then
|
||||
"${s6wrap[@]}" --prepend="$(basename "$0")][${servername}" --args echo "UUID disabled for this mlat-client instance"
|
||||
elif [[ -n "$uuid_arg" ]]; then
|
||||
MLAT_PARAM+=("--uuid ${uuid_arg}")
|
||||
elif [[ -n "${UUID}" ]]; then
|
||||
MLAT_PARAM+=("--uuid ${UUID}")
|
||||
else
|
||||
"${s6wrap[@]}" --args echo "WARNING: UUID is not defined, proceeding without UUID"
|
||||
"${s6wrap[@]}" --prepend="$(basename "$0")][${servername}" --args echo "WARNING: UUID is not defined, proceeding without UUID"
|
||||
fi
|
||||
|
||||
MLAT_PARAM+=(--stats-json "/run/mlat-client/${params[0]}:${params[1]}.json")
|
||||
|
|
Loading…
Reference in a new issue