eec8c7d88039bb85a2475468d19552394f42b446
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 0-host.sh
1 export host_fqdn=koha-dev.rot13.org
2 test -z "$host" && host=`echo $host_fqdn | cut -d. -f1`
3 export host
4 test -d $host || mkdir $host
5
6 hostlv=`echo $host | sed 's/-/--/g'`
7
8 ssh_host() {
9         log=`basename $1`
10         ssh root@$host $* | tee $host/$log
11 }
12