updates
This commit is contained in:
parent
ca0c614faf
commit
8d7cd75bed
@ -89,12 +89,13 @@ gta-max() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Generate docker compose file
|
# Generate docker compose file
|
||||||
echo $random > /tmp/random
|
echo $random > /tmp/$random-random
|
||||||
export VAR=`cat /tmp/random`
|
export VAR=`cat /tmp/$random-random`
|
||||||
envsubst < template-wg_server.yaml > $random-wg_server.yaml
|
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
|
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/.$//'`
|
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
|
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 ${random}-wg_server.yaml
|
||||||
|
rm /tmp/$random-random
|
||||||
|
|
||||||
$1
|
$1
|
Loading…
Reference in New Issue
Block a user