From 9d0a215b5803c14e8af79e7ef5dfbe1a36898b59 Mon Sep 17 00:00:00 2001 From: adelorenzo Date: Sat, 30 Dec 2023 01:15:37 +0100 Subject: [PATCH] Sat Dec 30 01:15:37 AM CET 2023 --- gen_random.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gen_random.sh b/gen_random.sh index 8ea3975..3fd3589 100755 --- a/gen_random.sh +++ b/gen_random.sh @@ -91,17 +91,10 @@ gta-max() { } # Setup VPN -vpn_port=`python3 /opt/thekube/gen_ports.py` +vpn_port=`python3 /opt/thekube/ports.py` lxc config device add ${random} udp$vpn_port proxy listen=udp:0.0.0.0:$vpn_port connect=udp:127.0.0.1:51820 - -# Generate docker compose file -#echo $random > /tmp/$random-random -#export VAR=`cat /tmp/$random-random` -#envsubst < template-wg_server.yaml > $random-wg_server.yaml curl --silent -X PUT --user "adelorenzo:dimi2014" https://couchdb.oe74.cloud/kk_users/${random}/${random} -d "{"_id":"$random"}" > /dev/null random_rev=`curl --silent -X GET https://adelorenzo:dimi2014@couchdb.oe74.cloud/kk_users/$random | jq -c '._rev' | sed 's/^.//' | sed 's/.$//'` #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 -#rm ${random}-wg_server.yaml -#rm /tmp/$random-random -$1 \ No newline at end of file +$1