Ben 1 year ago
parent
commit
5348887c47
2 changed files with 2 additions and 2 deletions
  1. 1 1
      run_master.sh
  2. 1 1
      run_slave.sh

+ 1 - 1
run_master.sh

@@ -1,4 +1,4 @@
 git pull origin master
 go build ./cmd/master.go
-ps aux | grep master | awk '{print "kill -9 " $2}' | sudo sh -x
+ps aux | grep master | awk '{print "kill -9 " $2}' | sh -x
 nohup ./master &

+ 1 - 1
run_slave.sh

@@ -1,4 +1,4 @@
 git pull origin master
 go build ./cmd/slave.go
-ps aux | grep slave | awk '{print "kill -9 " $2}' | sudo sh -x
+ps aux | grep slave | awk '{print "kill -9 " $2}' | sh -x
 nohup ./slave &