Code Update
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								wx
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user