Browse Source

[Bug][Deploy]Fix worker-server path in script scp-hosts.sh (#10208) (#10209)

3.1.0-release
Eric Gao 3 years ago committed by GitHub
parent
commit
4dbe27bb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      script/scp-hosts.sh

4
script/scp-hosts.sh

@ -49,7 +49,7 @@ do
fi fi
done done
# set worker groups in application.yaml # set worker groups in application.yaml
[[ -n ${workerIndex} ]] && sed -i "s/- default/- ${groupNames[$workerIndex]}/" worker-server/conf/application.yaml [[ -n ${workerIndex} ]] && sed -i "s/- default/- ${groupNames[$workerIndex]}/" ../worker-server/conf/application.yaml
for dsDir in bin master-server worker-server alert-server api-server ui tools for dsDir in bin master-server worker-server alert-server api-server ui tools
do do
@ -58,7 +58,7 @@ do
scp -q -P $sshPort -r $workDir/../$dsDir $host:$installPath scp -q -P $sshPort -r $workDir/../$dsDir $host:$installPath
done done
# restore worker groups to default # restore worker groups to default
[[ -n ${workerIndex} ]] && sed -i "s/- ${groupNames[$workerIndex]}/- default/" worker-server/conf/application.yaml [[ -n ${workerIndex} ]] && sed -i "s/- ${groupNames[$workerIndex]}/- default/" ../worker-server/conf/application.yaml
echo "scp dirs to $host/$installPath complete" echo "scp dirs to $host/$installPath complete"
done done

Loading…
Cancel
Save