diff options
author | onefang | 2019-12-23 13:04:31 +1000 |
---|---|---|
committer | onefang | 2019-12-23 13:04:31 +1000 |
commit | 6d835862d1da138e02afd6210eb1f80df02e25b9 (patch) | |
tree | 62547440a06436f53e84346fb5a4baca4137932a | |
parent | Clean up the clean up of STATUS files. (diff) | |
download | apt-panopticon-6d835862d1da138e02afd6210eb1f80df02e25b9.zip apt-panopticon-6d835862d1da138e02afd6210eb1f80df02e25b9.tar.gz apt-panopticon-6d835862d1da138e02afd6210eb1f80df02e25b9.tar.bz2 apt-panopticon-6d835862d1da138e02afd6210eb1f80df02e25b9.tar.xz |
Fork the tarballing of results_old.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 1675e73..f4613ea 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -974,7 +974,7 @@ else | |||
974 | local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") | 974 | local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") |
975 | local adt = fadt:read('*l') | 975 | local adt = fadt:read('*l') |
976 | fadt:close() | 976 | fadt:close() |
977 | if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') end | 977 | if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end |
978 | local dt = os.date('!%Y-%m-%d-%H-%M') | 978 | local dt = os.date('!%Y-%m-%d-%H-%M') |
979 | local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') | 979 | local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') |
980 | local odt = fodt:read('*l') | 980 | local odt = fodt:read('*l') |
@@ -1027,6 +1027,7 @@ else | |||
1027 | end | 1027 | end |
1028 | end | 1028 | end |
1029 | 1029 | ||
1030 | while 1 <= APT.checkExes('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') do os.execute("sleep 10") end | ||
1030 | if nil ~= adt then os.execute('rm -fr ' .. adt .. ' 2>/dev/null') end | 1031 | if nil ~= adt then os.execute('rm -fr ' .. adt .. ' 2>/dev/null') end |
1031 | 1032 | ||
1032 | I('Total run time was ' .. (os.time() - now) .. ' seconds.') | 1033 | I('Total run time was ' .. (os.time() - now) .. ' seconds.') |