From d922aa78581692c19a36737258a07d7369a93810 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Wed, 20 Dec 2023 12:07:38 -0600 Subject: [PATCH] updates --- gen_random.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gen_random.sh b/gen_random.sh index 271b54b..cfff83c 100755 --- a/gen_random.sh +++ b/gen_random.sh @@ -8,11 +8,12 @@ csgo2() { lxc launch --project $random -p default ubuntu:22.04 $random-csgo2 --n # Minecraft server minecraft() { - lxc project create $random -c features.images=false > /dev/null - lxc project switch $random > /dev/null - lxc --project $random network create vn-$random > /dev/null - cat /root/default.profile | lxc --project $random profile edit default > /dev/null - lxc launch --project $random -p default minecraft-server $random-minecraft --network vn-$random; + echo "Minecraft function" + #lxc project create $random -c features.images=false > /dev/null + #lxc project switch $random > /dev/null + #lxc --project $random network create vn-$random > /dev/null + #cat /root/default.profile | lxc --project $random profile edit default > /dev/null + #lxc launch --project $random -p default minecraft-server $random-minecraft --network vn-$random } # Apex server @@ -32,5 +33,3 @@ 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 -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 - -minecraft \ No newline at end of file