#!/bin/bash
#by a547144
ModuleName=$1
PW=$2
REVISION=$3
echo $PW
ConfigBranch=https://jabdw3422.corp.statestr.com/svn/usecase/branches/usecase-24033-201301142000-for_dev/gcth-support/gcth-configuration-tool/src/main/resources
ConfigTrunk=https://jabdw3422.corp.statestr.com/svn/usecase/trunk/gcth-support/gcth-configuration-tool/src/main/resources
rm -rf /agced1/gce/appbin/configuration/resources_reg/
echo yes|/agced1/svn/programs/bin/svn co --force --trust-server-cert --non-interactive $ConfigTrunk /agced1/gce/appbin/configuration/resources_reg -r $REVISION --username a569707 --password $PW
cd /agced1/gce/appbin/configuration/resources_reg/
case $ModuleName in
gcth-remediation-engine-r5)
FRAMEWORK="remediation_engine_r5"
;;
gcth-remediation-engine-r4)
FRAMEWORK="remediation_engine_r4"
;;
gcth-remediation-engine-r3)
FRAMEWORK="remediation_engine_r3"
;;
gcth-remediation-engine)
FRAMEWORK="remediation_engine"
;;
gcth-remediation-gateway-new)
FRAMEWORK="remediation_gateway"
;;
gcth-inbound-transformation)
FRAMEWORK="inbound_transformation"
;;
gcth-idf-server)
FRAMEWORK="IDFService"
;;
gcth-matching-engine)
FRAMEWORK="matching_engine"
;;
gcth-execution-controller)
FRAMEWORK="execution_controller"
;;
gcth-inbound-transmission)
FRAMEWORK="inbound_transmission"
;;
gold-copy-web)
FRAMEWORK="gold_copy_web"
;;
DBMaintenance)
FRAMEWORK="db_maint_app"
;;
esac
#Refresh config
if [ $ModuleName == all ]; then
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH remediation_engine_r5 REG -comment $REVISION
echo remediation_engine_r5 config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH remediation_engine_r4 REG -comment $REVISION
echo remediation_engine_r4 config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH remediation_engine_r3 REG -comment $REVISION
echo remediation_engine_r3 config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH remediation_engine REG -comment $REVISION
echo remediation_engine config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH remediation_gateway REG -comment $REVISION
echo remediation_gateway config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH inbound_transformation REG -comment $REVISION
echo inbound_transformation config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH IDFService REG -comment $REVISION
echo IDFService config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH matching_engine REG -comment $REVISION
echo matching_engine config refreshed completed
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH execution_controller REG -comment $REVISION
echo execution_controller config refreshed completed
else
java -classpath ../gcth-configuration-tool.jar:. com.statestr.gcth.support.config.loader.ConfigurationLoaderConsole GCTH $FRAMEWORK REG -comment $REVISION
echo $FRAMEWORK config refreshed completed
fi
if [ $? -ne 0 ]; then
echo "The shell is run FAILED!"
exit 1
fi
刷配置脚本 reconfig.sh
猜你喜欢
转载自dannyhz.iteye.com/blog/2243955
今日推荐
周排行