From 6fb24161d884010efaffc59597ecde244802c901 Mon Sep 17 00:00:00 2001 From: kx1t Date: Thu, 19 Dec 2024 13:25:33 -0500 Subject: [PATCH] cleanup --- rootfs/etc/s6-overlay/scripts/mlat-client | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/mlat-client b/rootfs/etc/s6-overlay/scripts/mlat-client index 20054ac..416ee29 100755 --- a/rootfs/etc/s6-overlay/scripts/mlat-client +++ b/rootfs/etc/s6-overlay/scripts/mlat-client @@ -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")