Ben il y a 1 an
Parent
commit
5348887c47
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 &