#!/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
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
#!/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
host=${l}
unset ishost
else
- echo Host ${host}.sarava.org
+ echo Host ${host}.${DOMAIN}
echo Port 22`printf "%02d" "${l}"`
echo
ishost=1
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
-
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
-
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
-
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
-
# Fix permissions.
chown root.root /var/svn
chown -R $SERVICE_USER.$SERVICE_GROUP /var/svn/*
-
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
-
#!/bin/bash
#
-# Deploy hydra suite on local node.
+# Install the Hydra Suite on local node.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as