From 776f9b3a5284aad149785e3755fbe55ec66b36a0 Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Tue, 25 Apr 2017 20:31:07 +0800 Subject: [PATCH 1/1] KYLIN-2568 When we execute the script 'kylin_port_replace_util.sh' to modify kylin port, it will reset other property in kylin.properties --- build/bin/kylin_port_replace_util.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/build/bin/kylin_port_replace_util.sh b/build/bin/kylin_port_replace_util.sh index 47b0d74f7..a37786ed0 100755 --- a/build/bin/kylin_port_replace_util.sh +++ b/build/bin/kylin_port_replace_util.sh @@ -69,19 +69,14 @@ then fi - #backup tomccat file + #backup tomcat file if [ ! -f ${TOMCAT_BACKUP_FILE} ]; then cp -f ${TOMCAT_CONFIG_FILE} ${TOMCAT_BACKUP_FILE} fi - #force reset - cp -f ${TOMCAT_INIT_FILE} ${TOMCAT_CONFIG_FILE} #reset if exist - - #back or reset + #backup kylin.properties if [ ! -f ${KYLIN_BACKUP_FILE} ]; then #backup if not exist cp -f ${KYLIN_CONFIG_FILE} ${KYLIN_BACKUP_FILE} - else - cp -r ${KYLIN_BACKUP_FILE} ${KYLIN_CONFIG_FILE} #reset if exist fi @@ -117,4 +112,4 @@ then else echo "Unrecognized command" exit 1 -fi +fi \ No newline at end of file -- 2.11.0.windows.1