fix host mountpoint
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 0-host.sh
1 export host_fqdn=rt.knjiznica.ffzg.hr
2 test -z "$host" && export host=`echo $host_fqdn | cut -d. -f1`
3 test -d $host || mkdir $host
4
5 ssh_host() {
6         log=`basename $1`
7         ssh root@$host $* | tee $host/$log
8 }
9