From 4836b03b8fc0defdb87d60a01eb250057b5ad5d6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 18 Nov 2021 15:40:06 +0100 Subject: [PATCH] allow for subset of nodes --- deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index e7384d8..fb55f60 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,13 @@ cd $(dirname $0) -for NIXHOST in $(ls node); do +if [ -z "$@" ]; then + NIXHOSTLIST=$(ls node) +else + NIXHOSTLIST="$@" +fi + +for NIXHOST in $NIXHOSTLIST; do NIXHOST=${NIXHOST%.*} if [ -z "$SSH_USER" ]; then