您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
!/bin/bash if [ $# -lt 1 ];then echo "Usage: $0 play|www|server|fenquapp|globalapp|battle|db_job|report_job|pay_job|bgm_server|router" fi case $1 in play) ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" dx1sock1 ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" dx1sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/dx1/${1}" dx1sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/dx1/${1}" dx1sock2 www) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" ${i}sock1 ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done server) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock1 ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done fenquapp) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/appserver;svn revert -R ./;svn up" ${i}appserver ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/appserver" ${i}appserver done db_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done report_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done pay_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done router) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done bgm_server) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/site/pjb_bgmv2;svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/bgm_server" ${i}sock2 done global) ansible -m shell -a "cd /home/autoconfig;svn revert -R ./;svn up" globalappserver ansible -m shell -a "cd /home/global;svn revert -R ./;svn up" globalappserver ansible -m shell -a "cd /home/appserver;svn revert -R ./;svn up" globalappserver ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/global/appserver" globalappserver battle) ansible -m shell -a "cd /home/autoconfig;svn revert -R ./;svn up" phybattleall ansible -m shell -a "cd /home/battleserver;svn revert -R ./;svn up" phybattleall for i in {1..10} do ansible -m shell -a "cd /home/phybattle${i};svn revert -R ./;svn up" phybattle${i} ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/phybattle${i}" phybattle${i} done esac
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。