mirror of https://github.com/itsmrval/accessGate
Update update.sh
parent
a93e9574c8
commit
599a6a2d07
|
|
@ -31,6 +31,7 @@ else
|
||||||
then
|
then
|
||||||
userPath=home/$x
|
userPath=home/$x
|
||||||
fi
|
fi
|
||||||
|
useradd $user
|
||||||
mkdir -p /$user
|
mkdir -p /$user
|
||||||
mkdir -p /$user/.ssh/
|
mkdir -p /$user/.ssh/
|
||||||
curl -o /$user/.ssh/authorized_keys -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server/allKeys
|
curl -o /$user/.ssh/authorized_keys -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server/allKeys
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue