aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-10 16:56:44 +1000
committeronefang2019-12-10 16:56:44 +1000
commit52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6 (patch)
tree47d7f047739380e556c9c4269438d052d033d069
parentOops, forgot to uncomment the untaring commands. (diff)
downloadapt-panopticon-52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6.zip
apt-panopticon-52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6.tar.gz
apt-panopticon-52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6.tar.bz2
apt-panopticon-52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6.tar.xz
Clean up after RRD rescue.
-rwxr-xr-xapt-panopticon-RRD-rescue.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-panopticon-RRD-rescue.lua b/apt-panopticon-RRD-rescue.lua
index 44fe2e6..461ae39 100755
--- a/apt-panopticon-RRD-rescue.lua
+++ b/apt-panopticon-RRD-rescue.lua
@@ -10,7 +10,7 @@ local arg, sendArgs = APT.parseArgs({...})
10 10
11os.execute('rm -fr rrd') 11os.execute('rm -fr rrd')
12 12
13local files = io.popen('ls -1 *.tar.xz') 13local files = io.popen('ls -1 results_*.tar.xz')
14for l in files:lines() do 14for l in files:lines() do
15 print('tar -xf ' .. l) 15 print('tar -xf ' .. l)
16 os.execute('tar -xf ' .. l) 16 os.execute('tar -xf ' .. l)
@@ -38,3 +38,9 @@ for l in files:lines() do
38 end 38 end
39 end 39 end
40end 40end
41
42local files = io.popen('ls -1 results_*.tar.xz')
43for l in files:lines() do
44 print('rm -rf ' .. l:sub(1, 24))
45 os.execute('rm -rf ' .. l:sub(1, 24))
46end