From ae73c9481ac6d2cb36aaeafdb2beb1a4709f5d2c Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 12 Dec 2019 13:49:13 +1000 Subject: Move the about to be replaced rrd directory deletion closer to the replacement code. --- apt-panopticon-update-data.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-panopticon-update-data.lua') 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 local arg, sendArgs = APT.parseArgs({...}) -os.execute('rm -fr rrd') local files = io.popen('ls -1 results_*.tar.xz') for l in files:lines() do @@ -16,6 +15,7 @@ for l in files:lines() do os.execute('tar -xf ' .. l) end +os.execute('rm -fr rrd') local files = io.popen('ls -d1 results_*') for l in files:lines() do if ('results_old' ~= l) and ('.tar.xz' ~= l:sub(25, -1)) then -- cgit v1.1