From a20d544b38a46a3830b1590eeaefd2d6f5bc3452 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 25 Apr 2020 19:23:55 +0200 Subject: [PATCH] Add some messages --- exporter/node_exporter/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exporter/node_exporter/install.sh b/exporter/node_exporter/install.sh index 875f673..7858056 100644 --- a/exporter/node_exporter/install.sh +++ b/exporter/node_exporter/install.sh @@ -17,8 +17,12 @@ if service --status-all | grep -Fq 'node_exporter'; then service node_exporter stop fi +echo "Copying exporter" + mkdir -p /usr/prometheus +echo "Checking/Creating systemd configuration" + cp $SCRIPTPATH/node_exporter /usr/prometheus/node_exporter chmod +x /usr/prometheus/node_exporter @@ -32,5 +36,7 @@ else cp $SCRIPTPATH/node_exporter.sysconfig /etc/sysconfig/node_exporter fi +echo "Starting Exporter" + systemctl enable node_exporter.service service node_exporter start \ No newline at end of file