aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-03-23 10:40:40 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2016-03-23 10:40:40 -0700
commitf8f99ed3c0186e38b142f5cfb44bc057aaac802b (patch)
tree99f6ca17561a7ea4ba288372485a3d0e2a0c7950 /bin/update-planet.sh
parentAdd GSoC acceptance announcement (diff)
downloadwww-f8f99ed3c0186e38b142f5cfb44bc057aaac802b.tar.gz
www-f8f99ed3c0186e38b142f5cfb44bc057aaac802b.tar.bz2
www-f8f99ed3c0186e38b142f5cfb44bc057aaac802b.zip
Add explicit timeouts to all scripts; we had a wget that was stuck for a month
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'bin/update-planet.sh')
-rwxr-xr-xbin/update-planet.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/update-planet.sh b/bin/update-planet.sh
index a0c8eb4..e15571d 100755
--- a/bin/update-planet.sh
+++ b/bin/update-planet.sh
@@ -1,6 +1,6 @@
#!/bin/bash
echo -n 'Updating Planet information...'
-wget 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 2>/dev/null
+wget -T 60 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 2>/dev/null
[ $? -eq 0 ] && mv _data/planet.xml.tmp _data/planet.xml
echo 'done.'