1
0
mirror of synced 2025-12-28 00:23:25 +00:00

Update update.sh

This commit is contained in:
Valentin
2023-09-12 23:35:23 +02:00
committed by GitHub
parent 4a5912b798
commit 4ef3186c7f

View File

@@ -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