diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-08 15:30:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-08 15:30:00 -0300 |
commit | e0f6b1bc64d737aa03f1383b01c71989443d48a3 (patch) | |
tree | e70bdab8893e9bc6827e318e174a5e7f7ea1fab0 /share/hydra/ssh-config | |
parent | ace671aaab66e86568db07a6852ec3aac5a22cd8 (diff) | |
download | hydra-e0f6b1bc64d737aa03f1383b01c71989443d48a3.tar.gz hydra-e0f6b1bc64d737aa03f1383b01c71989443d48a3.tar.bz2 |
Rename actions 'deploy' to 'install'
Diffstat (limited to 'share/hydra/ssh-config')
-rwxr-xr-x | share/hydra/ssh-config | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/share/hydra/ssh-config b/share/hydra/ssh-config index 92945f8..c30c82f 100755 --- a/share/hydra/ssh-config +++ b/share/hydra/ssh-config @@ -1,13 +1,16 @@ #!/bin/bash # Thanks to http://paste.debian.net/93242/ +# Parameters +NODESDIR=${1} +DOMAIN="`hydra $HYDRA config domain`" + +# Syntax check if [ $# -ne 1 ]; then echo "Usage: ${0} nodes_dir" exit 1 fi -NODESDIR=${1} - if [ ! -d ${NODESDIR} ]; then echo "Not a directory: ${NODESDIR}" exit 1 @@ -26,7 +29,7 @@ while read l; do host=${l} unset ishost else - echo Host ${host}.sarava.org + echo Host ${host}.${DOMAIN} echo Port 22`printf "%02d" "${l}"` echo ishost=1 |