summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/github_listener/handle_request
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-04-08 04:01:36 -0400
committerYour Name <you@example.com>2013-04-08 04:01:36 -0400
commit7477ce7e871a48a597b2e7d21561bb1d6fb4466b (patch)
treea7c37fee7b1e141d36d030993c40ddeab9d069d1 /retiolum/scripts/github_listener/handle_request
parent2b74acb096d971a680914cf284c2f9b0c99d7ff3 (diff)
parentf6dfecb5faf564b11a3c9bdfcaecab3f60b26a14 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts/github_listener/handle_request')
-rwxr-xr-xretiolum/scripts/github_listener/handle_request7
1 files changed, 6 insertions, 1 deletions
diff --git a/retiolum/scripts/github_listener/handle_request b/retiolum/scripts/github_listener/handle_request
index 5b42524a..211ca776 100755
--- a/retiolum/scripts/github_listener/handle_request
+++ b/retiolum/scripts/github_listener/handle_request
@@ -2,11 +2,15 @@
# Possible Shell Vars
# WEBDIR
# HOSTFOLDER
+
set -euf
+export GRAPHITE_HOST=${GRAPHITE_HOST:-no_omo}
+PATH=$PATH:../../../util/bin
if [ "x${2:-}" = x ];then
echo "usage: $0 HOSTDIRECTORY WEBDIRECTORY"
exit 1
fi
+NOW=$(timer)
export HOSTDIR=${1:-../../hosts}
WEBDIR=${2:-/var/www/euer.krebsco.de/retiolum/}
echo "sorry for keeping you waiting, please be patient"
@@ -20,4 +24,5 @@ cd - >&2
../../bin/create-supernode-tar $WEBDIR
echo "almost done..."
../../bin/create-host-tar $WEBDIR
-echo "Thank you for your patience!"
+echo "Thank you for your patience! I stole $(timer $NOW)ms of your time, sorry about that."
+graphitec 'retiolum.pack.build_time' $(timer $NOW)