You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
328 B

#!/usr/bin/env bash
port=$1
conf=$2
code=$3
dec=$4
serverURL=" http://127.0.0.1:7890/servers/submit"
data='{"webos": 1,"webssh": 0,"phpray": 1,"api": 1,"env": "'${conf}'","gm": 1,"desc": "'${dec}'", "branch": "'${code}'","port": '${port}'}'
echo "$data"
curl -X POST ${serverURL} -H 'Content-Type: application/json' -d "$data"