mirror of https://github.com/itsmrval/accessGate
Update update.sh
parent
4a5912b798
commit
4ef3186c7f
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
. /opt/accessgate/config.txt
|
. /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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue