From 4621c2116cb1bd637eb60917a388d8fcc80431b3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 11 Oct 2023 13:04:34 +0300 Subject: [PATCH] debug --- vault/run.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vault/run.sh b/vault/run.sh index 334066b..49aba3d 100644 --- a/vault/run.sh +++ b/vault/run.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash - +set -x BOLD='\033[0;1m' PROVIDER_ID=${PROVIDER_ID} VAULT_ADDR=${VAULT_ADDR} @@ -32,7 +32,7 @@ if ! command -v vault &>/dev/null; then rm vault.zip fi -printf "🥳 Installation comlete!\n\n" +printf "🥳 Installation complete!\n\n" # Set up Vault token printf "🔑 Authenticating with Vault ...\n\n" @@ -48,10 +48,7 @@ export VAULT_ADDR=$VAULT_ADDR # Verify Vault address and token printf "🔎 Verifying Vault address and token ...\n\n" vault status - -# Store token in .vault-token -printf "\nStoring token in .vault-token ...\n" -echo "$VAULT_TOKEN" >~/.vault-token +vault login $VAULT_TOKEN # Add VAULT_ADDR to shell login scripts if not already present e.g. .bashrc, .zshrc # This is a temporary fix and will be replaced with https://github.com/coder/coder/issues/10166