You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zi...@apache.org on 2022/05/24 01:53:16 UTC

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

This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4dbe27bb8f [Bug][Deploy]Fix worker-server path in script scp-hosts.sh (#10208) (#10209)
4dbe27bb8f is described below

commit 4dbe27bb8f7e87fcf18582e970d08236f2dbf3d5
Author: Eric Gao <er...@gmail.com>
AuthorDate: Tue May 24 09:53:11 2022 +0800

    [Bug][Deploy]Fix worker-server path in script scp-hosts.sh (#10208) (#10209)
---
 script/scp-hosts.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/scp-hosts.sh b/script/scp-hosts.sh
index b5cd611984..5ac51de8ed 100755
--- a/script/scp-hosts.sh
+++ b/script/scp-hosts.sh
@@ -49,7 +49,7 @@ do
     fi
   done
   # 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
   do
@@ -58,7 +58,7 @@ do
     scp -q -P $sshPort -r $workDir/../$dsDir  $host:$installPath
   done
   # 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"
 done