summaryrefslogtreecommitdiff
path: root/node-exporter/install.sh
blob: d342024da1c1cd9b4fc75c87c120f75816cf4c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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`"