Commit f1788542 authored by 智勇's avatar 智勇

up

parent e013df4b
...@@ -13,5 +13,10 @@ response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "h ...@@ -13,5 +13,10 @@ response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "h
for ip_last_num in $project_path for ip_last_num in $project_path
do do
IP_host=`sh $pwd_path_0/get-ip.sh $ip_last_num` IP_host=`sh $pwd_path_0/get-ip.sh $ip_last_num`
echo curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://$IP_host:15672/api/definitions"
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://$IP_host:15672/api/definitions" curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://$IP_host:15672/api/definitions"
if [ $? != 0 ];then
echo "curl $IP_host failed"
exit -1
fi
done done
\ No newline at end of file
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