diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-18 15:40:06 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-18 15:40:15 +0100 |
commit | 4836b03b8fc0defdb87d60a01eb250057b5ad5d6 (patch) | |
tree | 2e3ea08a17944c9910e746f9c12c8271d4247d1d /deploy.sh | |
parent | a225d3bcbdfd8671da94968b3b4ebafc9769ae27 (diff) | |
download | nixcfg-4836b03b8fc0defdb87d60a01eb250057b5ad5d6.tar.gz nixcfg-4836b03b8fc0defdb87d60a01eb250057b5ad5d6.zip |
allow for subset of nodes
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |