Skip to content
Snippets Groups Projects
Commit b2f890a1 authored by Martin Vala's avatar Martin Vala
Browse files

Fix for cycle in eos-docker-ssh

parent 0dbaa3c1
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -7,7 +7,7 @@ export ED_FST_HOSTS=${ED_FST_HOSTS-"eos-docker-fst.cf"} ...@@ -7,7 +7,7 @@ export ED_FST_HOSTS=${ED_FST_HOSTS-"eos-docker-fst.cf"}
if [ -z "$2" -o "$2" == "all" ];then if [ -z "$2" -o "$2" == "all" ];then
export ED_PSSH_HOSTS="-h $ED_ROOT_DIR/$ED_FST_HOSTS" export ED_PSSH_HOSTS="-h $ED_ROOT_DIR/$ED_FST_HOSTS"
for h in $(cat $ED_ROOT_DIR/$ED_FST_HOSTS);then for h in $(cat $ED_ROOT_DIR/$ED_FST_HOSTS);do
[ "${h:0:1}" == "#" ] && continue [ "${h:0:1}" == "#" ] && continue
echo "Checking host '$h' ..." echo "Checking host '$h' ..."
ping -c 1 -W 1 "$h" > /dev/null 2>&1 || { echo "Error : Host '$h' is unreachable !!!"; exit 1; } ping -c 1 -W 1 "$h" > /dev/null 2>&1 || { echo "Error : Host '$h' is unreachable !!!"; exit 1; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment