From: Dobrica Pavlinusic Date: Wed, 25 Jun 2014 13:49:57 +0000 (+0200) Subject: use hostname -s for export node X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=49ef85def2a8f60bff05f23416e76277938526ff;p=ganeti-extstorage-zfs use hostname -s for export node --- diff --git a/t/gnt-backup-export.sh b/t/gnt-backup-export.sh index b432c85..583c437 100755 --- a/t/gnt-backup-export.sh +++ b/t/gnt-backup-export.sh @@ -1,5 +1,7 @@ #!/bin/sh -xe -./bin/ill t- | awk '{ print $1 }' | xargs -i ssh `gnt-cluster getmaster` gnt-backup export -n arh-hw {} -./bin/backup list -n arh-hw | grep t- +# this scripts assueme that host on which you are doing gnt-backup is localhost + +./bin/ill t- | awk '{ print $1 }' | xargs -i ssh `gnt-cluster getmaster` gnt-backup export -n `hostname -s` {} +./bin/backup list -n `hostname -s` | grep t-