projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d66d46a
)
allow host=target_hostname script to execute single script on different host
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 12 Jan 2014 14:50:13 +0000
(14:50 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 12 Jan 2014 14:50:13 +0000
(14:50 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@307
191e9f34
-6774-4a6d-acfc-
7664dacd4a2a
recepies/ganeti/migrate-lxc/0-host.sh
patch
|
blob
|
history
diff --git
a/recepies/ganeti/migrate-lxc/0-host.sh
b/recepies/ganeti/migrate-lxc/0-host.sh
index
7132203
..
8ea2745
100644
(file)
--- a/
recepies/ganeti/migrate-lxc/0-host.sh
+++ b/
recepies/ganeti/migrate-lxc/0-host.sh
@@
-1,5
+1,5
@@
export host_fqdn=rt.knjiznica.ffzg.hr
-export host=`echo $host_fqdn | cut -d. -f1`
+
test -z "$host" &&
export host=`echo $host_fqdn | cut -d. -f1`
test -d $host || mkdir $host
ssh_host() {