aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/ssh-config
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-08 15:30:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-08 15:30:00 -0300
commite0f6b1bc64d737aa03f1383b01c71989443d48a3 (patch)
treee70bdab8893e9bc6827e318e174a5e7f7ea1fab0 /share/hydra/ssh-config
parentace671aaab66e86568db07a6852ec3aac5a22cd8 (diff)
downloadhydra-e0f6b1bc64d737aa03f1383b01c71989443d48a3.tar.gz
hydra-e0f6b1bc64d737aa03f1383b01c71989443d48a3.tar.bz2
Rename actions 'deploy' to 'install'
Diffstat (limited to 'share/hydra/ssh-config')
-rwxr-xr-xshare/hydra/ssh-config9
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