git.samba.org
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160a1b9
)
create_cluster: Avoid -e exit when cluster isn't in hosts file
author
Martin Schwenke
<martin@meltin.net>
Tue, 17 Jun 2014 04:40:18 +0000
(14:40 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Wed, 25 Jun 2014 10:46:15 +0000
(20:46 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
examples/create_cluster.sh
patch
|
blob
|
history
diff --git
a/examples/create_cluster.sh
b/examples/create_cluster.sh
index c030bf7758400e7b877b95debd2e8b5eef9fbcaf..fcac626ae2afd357989a9fbcab7c2ac3be9bd283 100755
(executable)
--- a/
examples/create_cluster.sh
+++ b/
examples/create_cluster.sh
@@
-48,7
+48,7
@@
update_hosts_file ()
pat="# autocluster ${cluster}\$|[[:space:]]${cluster}(n|base)[[:digit:]]+"
t="/etc/hosts.${cluster}"
- grep -E "$pat" /etc/hosts >"$t"
+ grep -E "$pat" /etc/hosts >"$t"
|| true
if diff -B "$t" "tmp/hosts.${cluster}" >/dev/null ; then
rm "$t"
return