change sshkey

This commit is contained in:
Aaron Riedel 2022-07-04 07:43:32 +02:00
parent 180baae73d
commit 9e748edb78
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -73,7 +73,7 @@ then
-X POST \ -X POST \
-H "Authorization: Bearer $API_TOKEN" \ -H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"name":"shcloud-fsn1","location":"fsn1","server_type":"'$type'","image":"debian-11","ssh_keys":["shcloud"],"volumes":['$VOLUME_ID'],"user_data":"#!/bin/bash\ncurl -sL ar21.de/shinit.php?IPv6='$IPv6'\\&GAME='$GAME'\\&VOLUME='$VOLUME_ID' | bash"}' \ -d '{"name":"shcloud-fsn1","location":"fsn1","server_type":"'$type'","image":"debian-11","ssh_keys":["secondhemd"],"volumes":['$VOLUME_ID'],"user_data":"#!/bin/bash\ncurl -sL ar21.de/shinit.php?IPv6='$IPv6'\\&GAME='$GAME'\\&VOLUME='$VOLUME_ID' | bash"}' \
'https://api.hetzner.cloud/v1/servers' -s) 'https://api.hetzner.cloud/v1/servers' -s)
#echo $deploy #echo $deploy
server_id=$(echo $deploy | jq ".server.id") server_id=$(echo $deploy | jq ".server.id")