diff options
-rw-r--r-- | sitesummary-client | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sitesummary-client b/sitesummary-client index 2f053da..de31f66 100644 --- a/sitesummary-client +++ b/sitesummary-client @@ -15,6 +15,12 @@ fragdirs="/usr/lib/sitesummary/collect.d \ # storage area on diskless clients, so use /tmp/. tmpdir=/tmp/sitesummary-$$ +log() { + msg="$@" + echo "$msg" + logger -p user.info -t sitesummary-client "$msg" +} + # Read the package default [ -f /usr/share/sitesummary/config ] && . /usr/share/sitesummary/config for confdir in \ @@ -39,5 +45,9 @@ 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 $url + if wget -q $WGETOPTS --post-file $tmpdir.tar.gz -O $tmpdir.result $url ; then + : + else + log "error: unable to submit to '$url'" + fi done |