From 7b13e7e32e4edeceff3eca2d000f1fae6dce631f Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 25 Apr 2020 19:21:34 +0200 Subject: [PATCH] Fix some bug --- exporter/node_exporter/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/node_exporter/install.sh b/exporter/node_exporter/install.sh index a38f0a4..f775dd0 100644 --- a/exporter/node_exporter/install.sh +++ b/exporter/node_exporter/install.sh @@ -17,7 +17,7 @@ if service --status-all | grep -Fq 'node_exporter'; then service node_exporter stop fi -cp node_exporter /usr/prometheus/node_exporter +cp $SCRIPTPATH/node_exporter /usr/prometheus/node_exporter chmod +x /usr/prometheus/node_exporter cp $SCRIPTPATH/node_exporter.service /etc/systemd/system/ @@ -31,4 +31,4 @@ else fi systemctl enable node_exporter.service -systemd start node_exporter \ No newline at end of file +service node_exporter start \ No newline at end of file