init
This commit is contained in:
11
cluster-update
Normal file
11
cluster-update
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
WORKER_LIST="worker.list"
|
||||
./update/update.sh
|
||||
for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do
|
||||
WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'`
|
||||
|
||||
echo "[worker:$WORKERNAME] Updating..."
|
||||
ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update/update.sh
|
||||
|
||||
echo "[worker:$WORKERNAME] Update is completed."
|
||||
done
|
Reference in New Issue
Block a user