Add some messages

This commit is contained in:
Fabian Stamm 2020-04-25 19:23:55 +02:00
parent 2e93bbd597
commit a20d544b38

View File

@ -17,8 +17,12 @@ if service --status-all | grep -Fq 'node_exporter'; then
service node_exporter stop service node_exporter stop
fi fi
echo "Copying exporter"
mkdir -p /usr/prometheus mkdir -p /usr/prometheus
echo "Checking/Creating systemd configuration"
cp $SCRIPTPATH/node_exporter /usr/prometheus/node_exporter cp $SCRIPTPATH/node_exporter /usr/prometheus/node_exporter
chmod +x /usr/prometheus/node_exporter chmod +x /usr/prometheus/node_exporter
@ -32,5 +36,7 @@ else
cp $SCRIPTPATH/node_exporter.sysconfig /etc/sysconfig/node_exporter cp $SCRIPTPATH/node_exporter.sysconfig /etc/sysconfig/node_exporter
fi fi
echo "Starting Exporter"
systemctl enable node_exporter.service systemctl enable node_exporter.service
service node_exporter start service node_exporter start