Source Update

This commit is contained in:
Christer Warén 2024-04-29 07:46:45 +03:00
parent c5359ed8f5
commit dc0bdf6755
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,9 @@ wx-ssh-sign(){
} }
wx-ssh-sign-create(){ wx-ssh-sign-create(){
mkdir -p $HOME/.ssh/keys
chmod 600 $HOME/.ssh/keys
NAME=$1 NAME=$1
ROLE=$2 ROLE=$2
PRINCIPALS=$2 PRINCIPALS=$2
@ -27,7 +30,6 @@ wx-ssh-sign-create(){
if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]] if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]]
then then
mkdir -p $HOME/.ssh/keys
ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null
fi fi

4
wx
View File

@ -384,6 +384,9 @@ wx-ssh-sign(){
} }
wx-ssh-sign-create(){ wx-ssh-sign-create(){
mkdir -p $HOME/.ssh/keys
chmod 600 $HOME/.ssh/keys
NAME=$1 NAME=$1
ROLE=$2 ROLE=$2
PRINCIPALS=$2 PRINCIPALS=$2
@ -391,7 +394,6 @@ wx-ssh-sign-create(){
if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]] if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]]
then then
mkdir -p $HOME/.ssh/keys
ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null
fi fi