summaryrefslogtreecommitdiff
path: root/node-exporter/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'node-exporter/install.sh')
-rw-r--r--node-exporter/install.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/node-exporter/install.sh b/node-exporter/install.sh
new file mode 100644
index 0000000..9deb6e8
--- /dev/null
+++ b/node-exporter/install.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+if [ "$(uname -s)" != "Linux" ]; then
+ echo "This script is not designed for $(uname -s)!"
+ exit 1
+fi
+if [ "$(uname -m)" != "x86_64" ]; then
+ echo "This script can't install binaries for $(uname -m)!"
+ exit 1
+fi
+
+
+if [ -e "/usr/bin/systemctl" ]; then
+ echo "Stating systemd install..."
+ INIT=systemd
+else
+ echo "Stating Sys V init install..."
+ INIT=sysv
+fi
+
+SCRIPT="`pwd`/$0"
+SCRIPT_PATH="`dirname $SCRIPT`"
+
+echo "Script: $SCRIPT"
+echo "Path: $SCRIPT_PATH"
+
+
+