From 4e9ae9109e71740bfbae37ee249afa64669f3bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 16 Jun 2024 04:03:45 +0300 Subject: [PATCH] Code Update --- src/commands/ssh/config.sh | 1 + wx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/commands/ssh/config.sh b/src/commands/ssh/config.sh index e83a409..2a05222 100644 --- a/src/commands/ssh/config.sh +++ b/src/commands/ssh/config.sh @@ -42,6 +42,7 @@ wx-ssh-config-sync(){ if [[ $VAULT_STATUS -eq 200 ]] then echo $(curl https://$VAULT_DOMAIN/v1/cli/data/$USERNAME/settings/ssh/config -X GET --header "X-Vault-Token: ${config["login",$ORG]}" -s | jq -r '.data.data.data') | base64 -d > ~/.ssh/config 2>&1 + chmod 700 ~/.ssh/config fi } diff --git a/wx b/wx index b2b1bcb..013f60c 100755 --- a/wx +++ b/wx @@ -475,6 +475,7 @@ wx-ssh-config-sync(){ if [[ $VAULT_STATUS -eq 200 ]] then echo $(curl https://$VAULT_DOMAIN/v1/cli/data/$USERNAME/settings/ssh/config -X GET --header "X-Vault-Token: ${config["login",$ORG]}" -s | jq -r '.data.data.data') | base64 -d > ~/.ssh/config 2>&1 + chmod 700 ~/.ssh/config fi }