This commit is contained in:
@@ -53,8 +53,12 @@ if [ -n "$TELEPORT_VERSION" ] && [ -n "$TELEPORT_URL" ] && [ -n "$TELEPORT_TOKEN
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create teleport configuration
|
# Create teleport configuration
|
||||||
teleport configure --roles=node --token="$TELEPORT_TOKEN" --proxy="$TELEPORT_URL" --no-acme -o file
|
if [ ! -f /etc/teleport.yaml ]; then
|
||||||
echo "Created teleport configuration file"
|
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
|
# Get the hostname of the machine
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
|
|||||||
Reference in New Issue
Block a user