Code Update

This commit is contained in:
Christer Warén 2024-05-30 15:51:49 +03:00
parent 399372294c
commit 02c84ef45f
3 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,9 @@
wx-ssh(){ wx-ssh(){
wx-login wx-login
mkdir -p $HOME/.ssh/keys
chmod 700 -R $HOME/.ssh/keys
case $1 in case $1 in
sign) sign)
wx-ssh-sign wx-ssh-sign

View File

@ -17,10 +17,6 @@ wx-ssh-sign(){
} }
wx-ssh-sign-create(){ wx-ssh-sign-create(){
mkdir -p $HOME/.ssh/keys
chmod 700 $HOME/.ssh/keys
chmod 600 $HOME/.ssh/keys/*
NAME=$1 NAME=$1
ROLE=$2 ROLE=$2
PRINCIPALS=$2 PRINCIPALS=$2

7
wx
View File

@ -322,6 +322,9 @@ wx-settings(){
wx-ssh(){ wx-ssh(){
wx-login wx-login
mkdir -p $HOME/.ssh/keys
chmod 700 -R $HOME/.ssh/keys
case $1 in case $1 in
sign) sign)
wx-ssh-sign wx-ssh-sign
@ -469,10 +472,6 @@ wx-ssh-sign(){
} }
wx-ssh-sign-create(){ wx-ssh-sign-create(){
mkdir -p $HOME/.ssh/keys
chmod 700 $HOME/.ssh/keys
chmod 600 $HOME/.ssh/keys/*
NAME=$1 NAME=$1
ROLE=$2 ROLE=$2
PRINCIPALS=$2 PRINCIPALS=$2