Debugging

pull/68/head
Stephen Kirby 2 years ago
parent 7300cab976
commit aa849bc42e

@ -27,3 +27,4 @@ resource "coder_script" "coder-login" {
run_on_start = true run_on_start = true
start_blocks_login = true start_blocks_login = true
} }

@ -5,8 +5,12 @@
echo "Logging into Coder..." echo "Logging into Coder..."
echo "SESSION TOKEN : ${CODER_USER_TOKEN}"
echo "DEPLOYMENT URL: ${CODER_DEPLOYMENT_URL}"
echo ""
if ! coder list >/dev/null 2>&1; then if ! coder list >/dev/null 2>&1; then
set +x; coder login --token=$CODER_USER_TOKEN --url=$CODER_DEPLOYMENT_URL set +x; coder login --token="${CODER_USER_TOKEN}" --url="${CODER_DEPLOYMENT_URL}"
else else
echo "You are already authenticated with coder" echo "You are already authenticated with coder"
fi fi

Loading…
Cancel
Save