export base_path=/usr/local
export JAVA_HOME=/usr/local/dhr/jdk
kill -9 $(ps -aef|grep dhr|grep -v grep |awk '{print $2}')
mv -f $base_path/dhr/dhr.war $base_path/dhr/dhr_bak.war
cp -f $base_path/ehr_privatization.war $base_path/dhr/dhr.war
cp -f $base_path/cfg.properties $base_path/dhr/config/cfg.properties
cp -f $base_path/wechat.properties $base_path/dhr/config/wechat.properties
cp -f $base_path/moxueyuan.properties $base_path/dhr/config/moxueyuan.properties
cp -f $base_path/wxwork.properties $base_path/dhr/config/wxwork.properties
cp -f $base_path/hengshi.properties $base_path/dhr/config/hengshi.properties
cp -f $base_path/dingtalk.properties $base_path/dhr/config/dingtalk.properties
cp -f $base_path/tomcat.properties $base_path/dhr/config/tomcat.properties
cp -f $base_path/feishu.properties $base_path/dhr/config/feishu.properties
cp -f $base_path/fadada.properties $base_path/dhr/config/fadada.properties
cp -f $base_path/meikahui.properties $base_path/dhr/config/meikahui.properties
#cp -f $base_path/key $base_path/dhr/config/key
cp -f $base_path/favicon.ico $base_path/dhr/config/resources/favicon.ico
#cp -f $base_path/sms.properties $base_path/dhr/config/sms.properties
cp -f $base_path/logoIm.png $base_path/dhr/config/resources/ehr/login/images/logoIm.png
#cp -f $base_path/i18n_en_US.properties $base_path/dhr/config/i18n/i18n_en_US.properties
#cp -f $base_path/i18n_zh_CN.properties $base_path/dhr/config/i18n/i18n_zh_CN.properties
rm -rf $base_path/dhr/logs/*
rm -rf $base_path/dhr/temp/*