aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-client
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:23:33 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:23:33 +0000
commitafb17394a6a94e13cbb4ac468bf192af3bffa9a4 (patch)
tree3115022843661653da14c06a05c2a8555a227f99 /sitesummary-client
parentcfe4805b3c5f2069a6b418ebdb3116cdf5e4f511 (diff)
downloadsitesummary-afb17394a6a94e13cbb4ac468bf192af3bffa9a4.tar.gz
sitesummary-afb17394a6a94e13cbb4ac468bf192af3bffa9a4.tar.bz2
sitesummary-afb17394a6a94e13cbb4ac468bf192af3bffa9a4.tar.xz
Allow the client to report to several collectors.
Diffstat (limited to 'sitesummary-client')
-rw-r--r--sitesummary-client7
1 files changed, 4 insertions, 3 deletions
diff --git a/sitesummary-client b/sitesummary-client
index f75461a..2f053da 100644
--- a/sitesummary-client
+++ b/sitesummary-client
@@ -7,7 +7,7 @@
set -e
-serverurl=http://localhost/cgi-bin/sitesummary-collector.cgi
+serverurls="http://localhost/cgi-bin/sitesummary-collector.cgi"
fragdirs="/usr/lib/sitesummary/collect.d \
/etc/sitesummary/collect.d"
@@ -37,6 +37,7 @@ for fragdir in $fragdirs ; do
done
tar zcf $tmpdir.tar.gz .
-
+for url in $serverurls ; do
#WGETOPTS="--no-check-certificate"
-wget $WGETOPTS --post-file $tmpdir.tar.gz -O $tmpdir.result $serverurl
+ wget $WGETOPTS --post-file $tmpdir.tar.gz -O $tmpdir.result $url
+done