aboutsummaryrefslogtreecommitdiff
path: root/share/hydra
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydra')
-rwxr-xr-xshare/hydra/install (renamed from share/hydra/deploy)4
-rwxr-xr-xshare/hydra/ssh-config9
2 files changed, 8 insertions, 5 deletions
diff --git a/share/hydra/deploy b/share/hydra/install
index 6a118de..cd47981 100755
--- a/share/hydra/deploy
+++ b/share/hydra/install
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Deploy hydra suite on multiple nodes.
+# Install the Hydra Suite on multiple nodes.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -58,7 +58,7 @@ for node in $NODES; do
sudo ln -sf /usr/local/hydra/hydras /usr/local/bin/hydras
# Remove from old location
- # We're keep hydra on /usr/local/bin as /usr/local/sbin might
+ # We keep hydra on /usr/local/bin as /usr/local/sbin might
# not be available on $PATH when connecting to a remote system.
sudo rm -f /usr/local/sbin/hydra
sudo rm -f /usr/local/sbin/hydractl
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