add -4 to wget on torrent for stats or otherwise it uses ipv6 and fails due to an access error

This commit is contained in:
Kevin Fenzi 2016-12-21 16:09:29 +00:00
parent 53fc8dc13f
commit e19f187616

View file

@ -6,7 +6,7 @@ base=/srv/web/stats/raw
baseurl='http://torrent.fedoraproject.org:6969/stats?mode='
date=`date +%Y-%m-%d`
hour=`date +%H`
wgetcmd="wget --timeout=20 -q"
wgetcmd="wget --timeout=20 -q -4"
#per-torrent stats
src="${baseurl}tpbs&format=txt"
dest=$base/torrent/$date