aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-06 16:24:32 +1000
committeronefang2019-11-06 16:24:32 +1000
commit3fdcc12a05165f6aa88e35e5bb964c02f06a1a87 (patch)
tree895750f2a3481c8013c74e85dbbeba58807cba48
parentDisable Prometheus output. (diff)
downloadapt-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-xapt-panopticon.lua6
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
627else 627else
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+")