diff --git a/update.sh b/update.sh index a0b6ec6..005e2f2 100644 --- a/update.sh +++ b/update.sh @@ -31,6 +31,7 @@ else then userPath=home/$x fi + useradd $user mkdir -p /$user 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