/[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

Annotation of /recepies/ganeti/migrate-lxc/0-host.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 312 - (hide annotations)
Wed Jan 29 00:13:48 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 205 byte(s)
tweaks after migration of narada

1 dpavlin 312 export host_fqdn=narada.vbz.ffzg.hr
2     test -z "$host" && host=`echo $host_fqdn | cut -d. -f1`
3     export host
4 dpavlin 306 test -d $host || mkdir $host
5    
6     ssh_host() {
7     log=`basename $1`
8     ssh root@$host $* | tee $host/$log
9     }
10    

  ViewVC Help
Powered by ViewVC 1.1.26