diff options
author | onefang | 2019-11-06 16:24:32 +1000 |
---|---|---|
committer | onefang | 2019-11-06 16:24:32 +1000 |
commit | 3fdcc12a05165f6aa88e35e5bb964c02f06a1a87 (patch) | |
tree | 895750f2a3481c8013c74e85dbbeba58807cba48 | |
parent | Disable Prometheus output. (diff) | |
download | apt-panopticon-3fdcc12a05165f6aa88e35e5bb964c02f06a1a87.zip apt-panopticon-3fdcc12a05165f6aa88e35e5bb964c02f06a1a87.tar.gz apt-panopticon-3fdcc12a05165f6aa88e35e5bb964c02f06a1a87.tar.bz2 apt-panopticon-3fdcc12a05165f6aa88e35e5bb964c02f06a1a87.tar.xz |
Clear out more stuff on startup.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 4278762..1c1491a 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -625,7 +625,11 @@ if 0 < #arg then | |||
625 | rfile:close() | 625 | rfile:close() |
626 | end | 626 | end |
627 | else | 627 | else |
628 | if not keep then os.execute("rm -f results/*.log") end | 628 | if not keep then |
629 | os.execute("rm -f results/*.log") | ||
630 | os.execute("rm -f results/*.html") | ||
631 | os.execute("rm -f results/*.txt") | ||
632 | end | ||
629 | os.execute("rm -f results/*.check") | 633 | os.execute("rm -f results/*.check") |
630 | os.execute("mkdir -p results; touch results/stamp") | 634 | os.execute("mkdir -p results; touch results/stamp") |
631 | logFile, e = io.open("results/apt-panopticon.log", "a+") | 635 | logFile, e = io.open("results/apt-panopticon.log", "a+") |