aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdstats/files
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@FreeBSD.org>2006-09-06 00:33:26 +0000
committerMarc G. Fournier <scrappy@FreeBSD.org>2006-09-06 00:33:26 +0000
commit353ee209ab6e9dfab57000b8cb500080f12ee08d (patch)
tree023e0e4c88553ea7aef31cae953710074eaba2da /sysutils/bsdstats/files
parent23d25c21175cd9c12fd580e26f04a5098ba39767 (diff)
downloadports-353ee209ab6e9dfab57000b8cb500080f12ee08d.tar.gz
ports-353ee209ab6e9dfab57000b8cb500080f12ee08d.zip
Add 'unset HTTP_USER_AGENT' ... the backend is setup to only accept specific
USER_AGENTs, so if someone has this set in their shell when running it manually, it will break Add random sleep 'breaks' before doing the fetchs, to help reduce impact on the server when all reporting hosts submit their data ... get them someone staggered ... Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com>
Notes
Notes: svn path=/head/; revision=172362
Diffstat (limited to 'sysutils/bsdstats/files')
-rw-r--r--sysutils/bsdstats/files/300.statistics5
-rw-r--r--sysutils/bsdstats/files/300.statistics.in5
2 files changed, 8 insertions, 2 deletions
diff --git a/sysutils/bsdstats/files/300.statistics b/sysutils/bsdstats/files/300.statistics
index 3036ef957efd..1705bca9b488 100644
--- a/sysutils/bsdstats/files/300.statistics
+++ b/sysutils/bsdstats/files/300.statistics
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.17 2006-09-04 22:40:56 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.18 2006-09-06 00:33:26 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@@ -22,6 +22,8 @@ id_token_file='/var/db/bsdstats'
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
+unset HTTP_USER_AGENT
+
IFS="
"
@@ -118,6 +120,7 @@ uri_escape () {
do_fetch () {
url="http://$checkin_server/scripts/$1"
+ sleep `openssl rand -base64 1 | hexdump -n 1 -e '"%u"'`
case $(uname) in
NetBSD) /usr/bin/ftp -V -o - "$url" ;;
FreeBSD | *) /usr/bin/fetch -q -o - "$url" ;;
diff --git a/sysutils/bsdstats/files/300.statistics.in b/sysutils/bsdstats/files/300.statistics.in
index 76cac2f59104..7ca8e22f7c86 100644
--- a/sysutils/bsdstats/files/300.statistics.in
+++ b/sysutils/bsdstats/files/300.statistics.in
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.17 2006-09-04 22:40:56 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.18 2006-09-06 00:33:26 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@@ -22,6 +22,8 @@ id_token_file='/var/db/bsdstats'
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
+unset HTTP_USER_AGENT
+
IFS="
"
@@ -118,6 +120,7 @@ uri_escape () {
do_fetch () {
url="http://$checkin_server/scripts/$1"
+ sleep `openssl rand -base64 1 | hexdump -n 1 -e '"%u"'`
case $(uname) in
NetBSD) /usr/bin/ftp -V -o - "$url" ;;
FreeBSD | *) /usr/bin/fetch -q -o - "$url" ;;