diff options
author | onefang | 2019-12-12 13:49:40 +1000 |
---|---|---|
committer | onefang | 2019-12-12 13:49:40 +1000 |
commit | e893d02892d2580ad04ad03e34149910d4f57265 (patch) | |
tree | f964cc755260e21c5864c5eed6f64d1b3078cc1c | |
parent | Move the about to be replaced rrd directory deletion closer to the replacemen... (diff) | |
download | apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.zip apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.gz apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.bz2 apt-panopticon-e893d02892d2580ad04ad03e34149910d4f57265.tar.xz |
Repack updated data directories.
-rwxr-xr-x | apt-panopticon-update-data.lua | 4 |
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 | ||
42 | local files = io.popen('ls -1 results_*.tar.xz') | 42 | local files = io.popen('ls -1 results_*.tar.xz') |
43 | for l in files:lines() do | 43 | for 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)) |
46 | end | 46 | end |