From a4f1ff23a82073859d3e2faa818dfa7d6cc1b0a0 Mon Sep 17 00:00:00 2001 From: Bram Date: Thu, 25 Sep 2025 19:03:50 +0200 Subject: [PATCH] teleport yaml check --- Dockers/remote-node-container/entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockers/remote-node-container/entrypoint.sh b/Dockers/remote-node-container/entrypoint.sh index 56edfcd..bf5a56c 100644 --- a/Dockers/remote-node-container/entrypoint.sh +++ b/Dockers/remote-node-container/entrypoint.sh @@ -53,8 +53,12 @@ if [ -n "$TELEPORT_VERSION" ] && [ -n "$TELEPORT_URL" ] && [ -n "$TELEPORT_TOKEN fi # Create teleport configuration - teleport configure --roles=node --token="$TELEPORT_TOKEN" --proxy="$TELEPORT_URL" --no-acme -o file - echo "Created teleport configuration file" + if [ ! -f /etc/teleport.yaml ]; then + teleport configure --roles=node --token="$TELEPORT_TOKEN" --proxy="$TELEPORT_URL" --no-acme -o file + echo "Created teleport configuration file" + else + echo "Teleport configuration file already exists, skipping configuration creation" + fi # Get the hostname of the machine HOSTNAME=$(hostname)