#!/bin/bash

#cat <<-EOF
#+++++++++++++++++++++++++++++
#+ [1] 172.17.1.253    华东双线
#+ [2] 172.19.1.252    BGP-A
#+ [3] 172.23.0.11     BGP-C
#+ [4] 172.25.0.252    北美
#+ [5] 172.26.0.252    亚太NTT
#+ [6] 172.27.118.252  广州BGP
#+ [7] 172.29.13.252   上海金融云
#+ [8] 172.27.247.252  BGP-B+
#+ [9] 172.29.45.100  浪潮机房
#+ [10] 172.28.246.252 BGP-D
#+ [11] 192.168.153.121    预发布
#+++++++++++++++++++++++++++++
#EOF

tarname=`curl http://message.service.ucloud.cn/soft/messae/list.txt`
echo http://message.service.ucloud.cn/soft/messae/$tarname
wget -P /tmp/ http://message.service.ucloud.cn/soft/messae/$tarname
tar -zxvf /tmp/$tarname -C /root/

sh /root/installer.sh inst
sh /root/installer.sh verify
