Fix some bug
This commit is contained in:
parent
ccb446eec5
commit
7b13e7e32e
@ -17,7 +17,7 @@ if service --status-all | grep -Fq 'node_exporter'; then
|
|||||||
service node_exporter stop
|
service node_exporter stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp 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
|
||||||
|
|
||||||
cp $SCRIPTPATH/node_exporter.service /etc/systemd/system/
|
cp $SCRIPTPATH/node_exporter.service /etc/systemd/system/
|
||||||
@ -31,4 +31,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl enable node_exporter.service
|
systemctl enable node_exporter.service
|
||||||
systemd start node_exporter
|
service node_exporter start
|
Loading…
Reference in New Issue
Block a user