/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/0-host.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-host.sh

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

revision 315 by dpavlin, Wed Jan 29 00:13:48 2014 UTC revision 316 by dpavlin, Thu Apr 24 07:26:24 2014 UTC
# Line 1  Line 1 
1  export host_fqdn=narada.vbz.ffzg.hr  export host_fqdn=koha-dev.rot13.org
2  test -z "$host" && host=`echo $host_fqdn | cut -d. -f1`  test -z "$host" && host=`echo $host_fqdn | cut -d. -f1`
3  export host  export host
4  test -d $host || mkdir $host  test -d $host || mkdir $host
5    
6    hostlv=`echo $host | sed 's/-/--/g'`
7    
8  ssh_host() {  ssh_host() {
9          log=`basename $1`          log=`basename $1`
10          ssh root@$host $* | tee $host/$log          ssh root@$host $* | tee $host/$log

Legend:
Removed from v.315  
changed lines
  Added in v.316

  ViewVC Help
Powered by ViewVC 1.1.26