diff options
| author | onefang | 2019-12-10 16:56:44 +1000 |
|---|---|---|
| committer | onefang | 2019-12-10 16:56:44 +1000 |
| commit | 52e52e46208b2dddeab8152e2f0e2f1e8eb67ee6 (patch) | |
| tree | 47d7f047739380e556c9c4269438d052d033d069 | |
| parent | Oops, forgot to uncomment the untaring commands. (diff) | |
| download | apt-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-x | apt-panopticon-RRD-rescue.lua | 8 |
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 | ||
| 11 | os.execute('rm -fr rrd') | 11 | os.execute('rm -fr rrd') |
| 12 | 12 | ||
| 13 | local files = io.popen('ls -1 *.tar.xz') | 13 | local files = io.popen('ls -1 results_*.tar.xz') |
| 14 | for l in files:lines() do | 14 | for 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 |
| 40 | end | 40 | end |
| 41 | |||
| 42 | local files = io.popen('ls -1 results_*.tar.xz') | ||
| 43 | for l in files:lines() do | ||
| 44 | print('rm -rf ' .. l:sub(1, 24)) | ||
| 45 | os.execute('rm -rf ' .. l:sub(1, 24)) | ||
| 46 | end | ||
