aboutsummaryrefslogtreecommitdiff
path: root/share/hydra
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-18 15:13:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-18 15:13:41 -0300
commit5f458f943a88e4e7137cf8eb78dd7a5b39e23b39 (patch)
tree52ac74b2160f5f3516e19a94b1883fe476153827 /share/hydra
parent018170210556e910c89ffec813bf516b65ded253 (diff)
downloadhydra-5f458f943a88e4e7137cf8eb78dd7a5b39e23b39.tar.gz
hydra-5f458f943a88e4e7137cf8eb78dd7a5b39e23b39.tar.bz2
Removes ssh-config
Diffstat (limited to 'share/hydra')
-rwxr-xr-xshare/hydra/ssh-config38
1 files changed, 0 insertions, 38 deletions
diff --git a/share/hydra/ssh-config b/share/hydra/ssh-config
deleted file mode 100755
index c30c82f..0000000
--- a/share/hydra/ssh-config
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/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
-
-if [ ! -d ${NODESDIR} ]; then
- echo "Not a directory: ${NODESDIR}"
- exit 1
-fi
-
-REGEXP1="\(nodo::vserver::instance\|context\)"
-REGEXP2="s/[^\"]*\"//"
-REGEXP3="s/\".*//"
-REGEXP4="s/[^']*'//"
-REGEXP5="s/'.*//"
-
-ishost=1
-
-while read l; do
- if [ ! -z "${ishost}" ]; then
- host=${l}
- unset ishost
- else
- echo Host ${host}.${DOMAIN}
- echo Port 22`printf "%02d" "${l}"`
- echo
- ishost=1
- fi
-done < <(grep -R "${REGEXP1}" ${NODESDIR} | sed -e "${REGEXP2}" -e "${REGEXP3}" \
- -e "${REGEXP4}" -e "${REGEXP5}")