mirror of https://github.com/aredn/aredn.git
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:
parent
d3a93925e2
commit
a9eefa0032
|
@ -136,6 +136,9 @@ close ($CMDS_OUT);
|
||||||
|
|
||||||
system("tar", "-zcf", "/tmp/supportdata.tgz", "-C", "/tmp/sd", "./");
|
system("tar", "-zcf", "/tmp/supportdata.tgz", "-C", "/tmp/sd", "./");
|
||||||
|
|
||||||
|
# Cleanup the temp files
|
||||||
|
system ("rm", "-r", "-f", "/tmp/sd");
|
||||||
|
|
||||||
$nodename=`uname -n`;
|
$nodename=`uname -n`;
|
||||||
chomp($nodename);
|
chomp($nodename);
|
||||||
$tstamp=`date +%Y%m%d%H%M`;
|
$tstamp=`date +%Y%m%d%H%M`;
|
||||||
|
|
Loading…
Reference in New Issue