您好,登錄后才能下訂單哦!
!/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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。