You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.2 KiB

1 month ago
#!/bin/bash
echo "**********************************reloadconfig bengin**********************************************"
echo ${1}
echo ${2}
echo ${3}
echo_green_str()
{
echo -e "\033[32m${1}\033[0m"
}
echo_red_str()
{
echo -e "\033[31m${1}\033[0m"
}
cd ..
workPath=`cd $(dirname $0); pwd -P`
cliPath=${workPath}/pandora_cli_proj
svrPath=${workPath}/pandora_svr_proj
sharePath=${workPath}/pandora_share_proj
#更新配置
update_share=${1}
update_svr=${2}
if [ $update_svr -eq 1 ]; then
echo_green_str "updata svr begin"
svn up ${svrPath}
echo_green_str "updata svr end"
fi
if [ $update_share -eq 1 ]; then
echo_green_str "updata share begin"
svn up ${arpg_share_proj}
#导表
echo_green_str "Begin Load Export"
cd ${sharePath}/ExcelExport
rm -rf ${svrPath}/cfg/data/*.txt
chmod 774 run_SpeedMac.sh
./run_SpeedMac.sh
echo_green_str "End Load Export"
echo_green_str "updata share end"
fi
#加载配置
echo_green_str "Begin reloadconfig"
svr_name=${3}
cd ${svrPath}/ctrl_sh
./run_${svr_name}.sh reloadconfig
echo_green_str "End reloadconfig"
echo "**********************************reloadconfig end*************************************************"