From 653754410f47aa7954d83c17b378345504749ddb Mon Sep 17 00:00:00 2001 From: mortzu Date: Fri, 26 Jul 2019 22:39:45 +0200 Subject: [PATCH] Add node information --- VERSION | 2 +- gatemon.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 5a2a580..eb49d7c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6 +0.7 diff --git a/gatemon.sh b/gatemon.sh index 21dcd58..e6e02e6 100755 --- a/gatemon.sh +++ b/gatemon.sh @@ -104,6 +104,11 @@ else CHECK_SUFFIX='-nonroot' fi +# Get node informations +NODE_INFO="$(curl -s -f http://node.ffhb.de/cgi-bin/nodeinfo)" +NODE_HOSTNAME="$(jq -r .hostname <<<"$NODE_INFO")" +NODE_ID="$(jq -r .node_id <<<"$NODE_INFO")" + # Get version GATEMON_VERSION="$(<$(dirname "$0")/VERSION)" @@ -116,6 +121,8 @@ cat >"$TMP_FILE" <