Source Update
This commit is contained in:
parent
c5359ed8f5
commit
dc0bdf6755
@ -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
4
wx
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user