chore(seed): name MxGateway connection per site (ScadaBridge Site <X>)

Replace the generic 'MxGateway Shared' connection name with a per-site name
(site-a -> 'ScadaBridge Site A', env2 site-x -> 'ScadaBridge Site X') in both
docker/ and docker-env2/ seed scripts.
This commit is contained in:
Joseph Doherty
2026-05-29 08:35:39 -04:00
parent 666ee95095
commit 0434fcee00
2 changed files with 10 additions and 6 deletions
+6 -3
View File
@@ -83,13 +83,16 @@ for ident in site-a site-b site-c; do
echo " ($ident not found — skipping MxGateway connection)"
continue
fi
echo " $ident (id=$SITE_ID): creating 'MxGateway Shared'..."
# Per-site connection name (e.g. site-a -> "ScadaBridge Site A").
SITE_LETTER=$(printf '%s' "${ident#site-}" | tr '[:lower:]' '[:upper:]')
CONN_NAME="ScadaBridge Site ${SITE_LETTER}"
echo " $ident (id=$SITE_ID): creating '$CONN_NAME'..."
$CLI $URL $AUTH data-connection create \
--site-id "$SITE_ID" \
--name "MxGateway Shared" \
--name "$CONN_NAME" \
--protocol "MxGateway" \
--primary-config "$MXGW_CONFIG" \
|| echo " (MxGateway connection may already exist on $ident)"
|| echo " ('$CONN_NAME' may already exist on $ident)"
done
echo ""