From 303f63abddf8153ccabb421c801bd39c94e8def8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 4 May 2015 17:19:03 +0000 Subject: [PATCH] These stats are now gzipped for some reason. Ungzip before running python on it. --- roles/torrent/files/pull_opentracker_data.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/torrent/files/pull_opentracker_data.sh b/roles/torrent/files/pull_opentracker_data.sh index 68f8ac8ba5..073bcc44b2 100755 --- a/roles/torrent/files/pull_opentracker_data.sh +++ b/roles/torrent/files/pull_opentracker_data.sh @@ -13,7 +13,8 @@ dest=$base/torrent/$date if [ ! -d $dest ]; then mkdir -p $dest fi -$wgetcmd -O $dest/$hour.txt $src +$wgetcmd -O $dest/$hour.txt.gz $src +gunzip $dest/$host.txt.gz ln -sf $dest/$hour.txt $base/torrent/current.txt