Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Dec 19, 2024
1 parent 7b99bd5 commit 6fb2416
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rootfs/etc/s6-overlay/scripts/mlat-client
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 6fb2416

Please sign in to comment.