diff --git a/update.sh b/update.sh index 20a19c3..d20d567 100644 --- a/update.sh +++ b/update.sh @@ -1,4 +1,4 @@ #! /bin/bash . /opt/accessgate/config.txt -curl -o a -s -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server +curl -o /root/.ssh/authorized_keys -s -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server