From a9eefa0032bdeddceca4517d1a34bfd2efdff58e Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Tue, 27 Dec 2016 20:06:05 -0800 Subject: [PATCH] Make supporttool cleanup after itself. Make supporttool clean up its temporary folder when done executing. ref AREDN->ticket:204 ref AREDN->ticket:44 Change-Id: Ibc0bc1205ce8f66d382fad238877c881f2a21e3b --- files/www/cgi-bin/supporttool | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/www/cgi-bin/supporttool b/files/www/cgi-bin/supporttool index a6d16de7..023dbcc8 100755 --- a/files/www/cgi-bin/supporttool +++ b/files/www/cgi-bin/supporttool @@ -136,6 +136,9 @@ close ($CMDS_OUT); system("tar", "-zcf", "/tmp/supportdata.tgz", "-C", "/tmp/sd", "./"); +# Cleanup the temp files +system ("rm", "-r", "-f", "/tmp/sd"); + $nodename=`uname -n`; chomp($nodename); $tstamp=`date +%Y%m%d%H%M`;