From 284b6d909e7774dd71a298ce5b45bb7b20ee00f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 2 Apr 2019 22:51:47 +0200 Subject: [PATCH] Update cluster-update --- cluster-update | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cluster-update b/cluster-update index 92d7cca..60f64ff 100644 --- a/cluster-update +++ b/cluster-update @@ -1,13 +1,11 @@ #!/bin/bash WORKER_LIST="worker.list" -apt update -apt upgrade -y +./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" < apt update - ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < apt upgrade -y + ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update.sh echo "[worker:$WORKERNAME] Update is completed." done