Commit 537645fd authored by kalvin's avatar kalvin

fixbugs

parent 3a708930
...@@ -30,13 +30,13 @@ done ...@@ -30,13 +30,13 @@ done
if [[ $is_running -eq 1 ]] if [[ $is_running -eq 1 ]]
then then
echo "rabbitmq is running!!! start execution sync job" echo "rabbitmq is running!!! start execution sync job"
echo "init rabbit with eos server" echo "init rabbit with eos server"
# echo "get definitions from 172.16.1.231" # echo "get definitions from 172.16.1.231"
# response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "http://172.16.1.231:15672/api/definitions") # response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "http://172.16.1.231:15672/api/definitions")
# curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://rabbitmq:15672/api/definitions" # curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://rabbitmq:15672/api/definitions"
response=$(curl -X POST -H "Content-Type: application/json" -d "{\"namespace\":\"$NAMESPACE\"}" "http://eos.quantgroups.com/api/etcd/init_env_rabbitmq_config") response=$(curl -X POST -H "Content-Type: application/json" -d "{\"namespace\":\"$NAMESPACE\"}" "http://eos.quantgroups.com/api/etcd/init_env_rabbitmq_config")
echo $response echo $response
else else
echo "rabbitmq is not running!!! Do not execution sync job" echo "rabbitmq is not running!!! Do not execution sync job"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment