diff options
author | varac <varacanero@zeromail.org> | 2015-07-07 14:39:34 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-07-07 14:39:34 +0200 |
commit | 4986f2ba34bbed7748b80f02ab965dd5968217bc (patch) | |
tree | 72c4f7c537ac912b52b07cfbb5cde574f4ba47f8 /puppet | |
parent | 73f83d847540a0f679d23f5dc86660b55959710a (diff) |
remove leap_couch_stats.sh TMPFILE so /tmp/ won't fill with tmp files (#7217)
Change-Id: I7b778e1e1af2784bd79840f20453ca8718927e25
Diffstat (limited to 'puppet')
-rwxr-xr-x | puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh b/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh index 95474ccb..285a80f0 100755 --- a/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh +++ b/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh @@ -97,6 +97,7 @@ $CURL -X GET $URL/_all_dbs | json_pp | egrep -v '(\[|\])' > $TMPFILE # get list of dbs to check dbs=$( egrep -v "${DBLIST_EXCLUDE}" $TMPFILE | tr -d '\n"' | sed 's/,/ /g' ) +rm "$TMPFILE" for db in $dbs do |