diff options
-rwxr-xr-x | apt-panopticon-update-data.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticon-update-data.lua b/apt-panopticon-update-data.lua index 461ae39..0371375 100755 --- a/apt-panopticon-update-data.lua +++ b/apt-panopticon-update-data.lua | |||
@@ -8,7 +8,6 @@ local C = APT.C | |||
8 | local arg, sendArgs = APT.parseArgs({...}) | 8 | local arg, sendArgs = APT.parseArgs({...}) |
9 | 9 | ||
10 | 10 | ||
11 | os.execute('rm -fr rrd') | ||
12 | 11 | ||
13 | local files = io.popen('ls -1 results_*.tar.xz') | 12 | local files = io.popen('ls -1 results_*.tar.xz') |
14 | for l in files:lines() do | 13 | for l in files:lines() do |
@@ -16,6 +15,7 @@ for l in files:lines() do | |||
16 | os.execute('tar -xf ' .. l) | 15 | os.execute('tar -xf ' .. l) |
17 | end | 16 | end |
18 | 17 | ||
18 | os.execute('rm -fr rrd') | ||
19 | local files = io.popen('ls -d1 results_*') | 19 | local files = io.popen('ls -d1 results_*') |
20 | for l in files:lines() do | 20 | for l in files:lines() do |
21 | if ('results_old' ~= l) and ('.tar.xz' ~= l:sub(25, -1)) then | 21 | if ('results_old' ~= l) and ('.tar.xz' ~= l:sub(25, -1)) then |