Browse Source

[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 <zhongjiajie955@hotmail.com>

Co-authored-by: Kirs <acm_master@163.com>
Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
3.0.0/version-upgrade
xuhhui 3 years ago committed by GitHub
parent
commit
1c6ef50036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      install.sh

7
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

Loading…
Cancel
Save