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
This commit is contained in:
Conrad Lara - KG6JEI 2016-12-27 20:06:05 -08:00 committed by KG6JEI
parent d3a93925e2
commit a9eefa0032
1 changed files with 3 additions and 0 deletions

View File

@ -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`;