From 995f64dfc643aa17b8ceeea7ffb2aea1e8db9c13 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Thu, 6 Jul 2023 08:58:45 -0400 Subject: [PATCH] add hostname to the init file in case someone removes the actual container for whatever reason... --- quickstart/docker/image/run-router.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickstart/docker/image/run-router.sh b/quickstart/docker/image/run-router.sh index ac2c3aa8f..48a2a358d 100755 --- a/quickstart/docker/image/run-router.sh +++ b/quickstart/docker/image/run-router.sh @@ -24,8 +24,8 @@ if [[ "${_ZITI_EDGE_ROUTER_NAME}" != "" ]]; then export ZITI_EDGE_ROUTER_NAME="${_ZITI_EDGE_ROUTER_NAME}" echo "ZITI_EDGE_ROUTER_NAME set to: ${ZITI_EDGE_ROUTER_NAME}" fi - -if [ ! -f "${ZITI_HOME}/${ZITI_EDGE_ROUTER_NAME}.init" ]; then +_UNIQUE_NAME="${ZITI_HOME}/${ZITI_EDGE_ROUTER_NAME}-${HOSTNAME}.init" +if [ ! -f "${_UNIQUE_NAME}" ]; then echo "system has not been initialized. initializing..." ziti edge login ${ZITI_CTRL_EDGE_ADVERTISED_ADDRESS}:${ZITI_CTRL_EDGE_ADVERTISED_PORT} -u $ZITI_USER -p $ZITI_PWD -y @@ -59,7 +59,7 @@ if [ ! -f "${ZITI_HOME}/${ZITI_EDGE_ROUTER_NAME}.init" ]; then echo "" fi echo "system initialized. writing marker file" - echo "system initialized" > "${ZITI_HOME}/${ZITI_EDGE_ROUTER_NAME}.init" + echo "system initialized" > "${_UNIQUE_NAME}" else echo "system has been initialized. starting the process." fi