From 4afe822397a0fe8f3e528077089577c89c9895e5 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 10 Dec 2015 14:58:53 +1100 Subject: [PATCH] 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 --- ctdb/config/functions | 2 -- 1 file changed, 2 deletions(-) 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 }' -- 2.34.1