Skip to content

Commit

Permalink
fix: update ref to var in tsh script
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Sep 29, 2023
1 parent dba3607 commit a16b6d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/teleport-db-login/assets/tsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function db_login() {
TSH_TARGET_CLUSTER=${1:?}
TSH_TARGET_DB=${2:?}

tsh db login --cluster "${TSH_CLUSTER_NAME}" "${TSH_TARGET_DB}" 1>/dev/null
tsh db config --cluster "${TSH_CLUSTER_NAME}" --format=json "${TSH_TARGET_DB}"
tsh db login --cluster "${TSH_TARGET_CLUSTER}" "${TSH_TARGET_DB}" 1>/dev/null
tsh db config --cluster "${TSH_TARGET_CLUSTER}" --format=json "${TSH_TARGET_DB}"
}

# ------------------------------------------------------------------- script ---
Expand Down

0 comments on commit a16b6d3

Please sign in to comment.