From: Martin Schwenke Date: Thu, 10 Dec 2015 03:58:53 +0000 (+1100) Subject: ctdb-scripts: Don't remove temporary files before use X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=4afe822397a0fe8f3e528077089577c89c9895e5 ctdb-scripts: Don't remove temporary files before use They will be clobbered by the redirect anyway. Signed-off-by: Martin Schwenke Reviewed-by: Michael Adam --- diff --git a/ctdb/config/functions b/ctdb/config/functions index eef8f7e38ab..b41337ffbf7 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -1084,7 +1084,6 @@ update_tickles () # Record connections to our public IPs in a temporary file _my_connections="${tickledir}/${_port}.connections" - rm -f "$_my_connections" netstat -tn | awk -v destpat="^${_ipschoice}:${_port}\$" \ '$1 == "tcp" && $6 == "ESTABLISHED" && $4 ~ destpat {print $5, $4}' | @@ -1092,7 +1091,6 @@ update_tickles () # Record our current tickles in a temporary file _my_tickles="${tickledir}/${_port}.tickles" - rm -f "$_my_tickles" for _i in $_ips ; do ctdb -X gettickles $_i $_port | awk -F'|' 'NR > 1 { printf "%s:%s %s:%s\n", $2, $3, $4, $5 }'