From 1c6ef500369ef028711f2dbd5e045818af052fee Mon Sep 17 00:00:00 2001 From: xuhhui Date: Fri, 26 Nov 2021 14:42:14 +0800 Subject: [PATCH] [improvement] improve install.sh if then statement (#6782) * [Fix] Executing install.sh failed when password and others contain @ * Update install.sh Co-authored-by: Jiajie Zhong Co-authored-by: Kirs Co-authored-by: Jiajie Zhong --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index af43b27f9..dac369b0d 100755 --- a/install.sh +++ b/install.sh @@ -32,26 +32,21 @@ fi # 2.scp resources echo "2.scp resources" sh ${workDir}/script/scp-hosts.sh -if [ $? -eq 0 ] -then +if [ $? -eq 0 ];then echo 'scp copy completed' else echo 'scp copy failed to exit' exit 1 fi - # 3.stop server echo "3.stop server" sh ${workDir}/script/stop-all.sh - # 4.delete zk node echo "4.delete zk node" - sh ${workDir}/script/remove-zk-node.sh $zkRoot - # 5.startup echo "5.startup" sh ${workDir}/script/start-all.sh