/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/0-ganeti.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /recepies/ganeti/migrate-lxc/0-ganeti.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 309 by dpavlin, Sun Jan 12 13:39:28 2014 UTC revision 310 by dpavlin, Sun Jan 12 16:07:52 2014 UTC
# Line 10  test -d ganeti || mkdir ganeti Line 10  test -d ganeti || mkdir ganeti
10    
11  ssh_master() {  ssh_master() {
12          log=`basename $1`          log=`basename $1`
13          ssh root@$master $* | tee ganeti/$log          if [ "$1" == "gnt-instance" ] ; then
14                    ssh root@$master $*
15            else
16                    ssh root@$master $* | tee ganeti/$log
17            fi
18  }  }

Legend:
Removed from v.309  
changed lines
  Added in v.310

  ViewVC Help
Powered by ViewVC 1.1.26