From e0f6b1bc64d737aa03f1383b01c71989443d48a3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 8 Sep 2015 15:30:00 -0300 Subject: Rename actions 'deploy' to 'install' --- share/hydra/ssh-config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'share/hydra/ssh-config') 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 -- cgit v1.2.3