diff options
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 |