Commit 75b9cfa0 authored by Anton Agapov's avatar Anton Agapov

Added localhost managing ability to glusterupdate.sh

parent 178b65ff
#!/bin/bash
hosts="snail lin-test cellar windsor nun lav vbox asu multi space1"
hosts="snail lin-test cellar windsor nun lav vbox asu multi space1 localhost"
clients="euclid atlant grape"
# builder builder64"
......@@ -6,7 +6,11 @@ run_on_hosts(){
for i in $hosts
do
echo $i
ssh $i 'bash -s' <<< "$@"
if [ $i != localhost ]
then
ssh $i 'bash -s' <<< "$@"
else
"$@"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment