This commit is contained in:
@@ -53,8 +53,12 @@ if [ -n "$TELEPORT_VERSION" ] && [ -n "$TELEPORT_URL" ] && [ -n "$TELEPORT_TOKEN
|
||||
fi
|
||||
|
||||
# Create teleport configuration
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user