From 2b98b9c90e31b402c1a6459321f297f853fa04ce Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Fri, 5 Jan 2024 17:17:49 -0600 Subject: [PATCH] gameServer --- gen_random.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gen_random.sh b/gen_random.sh index 5197ec3..366be4a 100755 --- a/gen_random.sh +++ b/gen_random.sh @@ -31,5 +31,7 @@ curl --silent -X PUT --user "adelorenzo:dimi2014" https://couchdb.oe74.cloud/kk_ # random_rev=`curl --silent -X GET https://adelorenzo:dimi2014@couchdb.oe74.cloud/kk_users/$random | jq -c '._rev' | sed 's/^.//' | sed 's/.$//'` curl --silent -X GET --user "adelorenzo:dimi2014" https://couchdb.oe74.cloud/kk_users/$random | jq '(.["vpn_port"] = '"$vpn_port"')' > $random-port.temp curl --silent -X PUT -H "Content-Type: application/json" https://adelorenzo:dimi2014@couchdb.oe74.cloud/kk_users/$random --data @${random}-port.temp > /dev/null +curl --silent -X GET --user "adelorenzo:dimi2014" https://couchdb.oe74.cloud/kk_users/$random | jq '(.["gameServer"] = '"$1"')' > $random-port.temp +curl --silent -X PUT -H "Content-Type: application/json" https://adelorenzo:dimi2014@couchdb.oe74.cloud/kk_users/$random --data @${random}-port.temp > /dev/null # rm $random-port.temp #curl --silent -H "Content-Type: text/x-yaml" -X PUT --data-binary @${random}-wg_server.yaml --user "adelorenzo:dimi2014" "https://couchdb.oe74.cloud/kk_users/${random}/${random}-wg_server.yaml?rev=$random_rev" > /dev/null