aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-12 13:49:40 +1000
committeronefang2019-12-12 13:49:40 +1000
commite893d02892d2580ad04ad03e34149910d4f57265 (patch)
treef964cc755260e21c5864c5eed6f64d1b3078cc1c
parentMove the about to be replaced rrd directory deletion closer to the replacemen... (diff)
downloadapt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.zip
apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.gz
apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.bz2
apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.xz
Repack updated data directories.
-rwxr-xr-xapt-panopticon-update-data.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon-update-data.lua b/apt-panopticon-update-data.lua
index 0371375..98c909a 100755
--- a/apt-panopticon-update-data.lua
+++ b/apt-panopticon-update-data.lua
@@ -41,6 +41,6 @@ end
41 41
42local files = io.popen('ls -1 results_*.tar.xz') 42local files = io.popen('ls -1 results_*.tar.xz')
43for l in files:lines() do 43for l in files:lines() do
44 print('rm -rf ' .. l:sub(1, 24)) 44 print('tar -c --xz ' .. l:sub(1, 24) .. ' -f ' .. l .. '; rm -fr ' .. l:sub(1, 24))
45 os.execute('rm -rf ' .. l:sub(1, 24)) 45 os.execute('tar -c --xz ' .. l:sub(1, 24) .. ' -f ' .. l .. '; rm -fr ' .. l:sub(1, 24))
46end 46end