IBSE打包部署

 


 

 

 


 

 

 

 

 

 

 

 

 

 


 

替换配置文件为测试的:

cp -rf sit/encryptConfig.properties src/
cp -rf sit/jdbc.properties src/
cp -rf sit/log4j.properties src/
cp -rf sit/sysconfig.properties src/


echo "--------------------------------放入pda目录--------------------------------------"
cd /home/appdeploy/bak
unzip pdaupdate.zip
jar -uf CBTB.war pdaupdate
rm -rf pdaupdate


 

echo "-------------------------------上传成功---------------------------------------"
echo "--------------------------------备份文件--------------------------------------"
cp -r /app/war/IBU_IBSE_CORE_CNSZ22_JBOSS_APP_CBTB_0[1-2]/pkg/CBTB.war /tmp/CBTB/`date "+%Y%m%d%H%M"`CBTB.war
find /tmp/CBTB/ -atime +14 -name "*.war" -exec "rm -rf" {} \;
echo "--------------------------------放入bms目录--------------------------------------"
cd /home/appdeploy/bak
unzip bmsupdate.zip
jar -uf CBTB.war bmsupdate
rm -rf bmsupdate
echo "--------------------------------停止应用------------------------------------------"
cd /app/jboss/jboss-as/logs
./IBU_IBSE_CORE_CNSZ22_JBOSS_APP_CBTB_0[1-2].sh stop
echo "-----------------------------------部署包----------------------------------------"
cp -r /home/appdeploy/bak/CBTB.war /app/war/IBU_IBSE_CORE_CNSZ22_JBOSS_APP_CBTB_0[1-2]/pkg/
echo "--------------------------------启动应用------------------------------------------"
./IBU_IBSE_CORE_CNSZ22_JBOSS_APP_CBTB_0[1-2].sh start

 

posted @ 2021-03-12 11:20  方园FPP  阅读(89)  评论(0编辑  收藏  举报