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