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)