updated naming
This commit is contained in:
parent
f3e42189f2
commit
d47f8f5152
14
install.sh
14
install.sh
@ -13,17 +13,17 @@ fi
|
|||||||
|
|
||||||
# Setup exporter
|
# Setup exporter
|
||||||
echo "Installing Exporter..."
|
echo "Installing Exporter..."
|
||||||
cp power-exporter.js /usr/local/bin/power-exporter.js
|
cp ups-exporter.js /usr/local/bin/ups-exporter.js
|
||||||
chmod +x /usr/local/bin/power-exporter.js
|
chmod +x /usr/local/bin/ups-exporter.js
|
||||||
|
|
||||||
# Setup service
|
# Setup service
|
||||||
echo "Stting Up Service..."
|
echo "Stting Up Service..."
|
||||||
cp power-exporter.service /etc/systemd/system/power-exporter.service
|
cp ups-exporter.service /etc/systemd/system/ups-exporter.service
|
||||||
chmod +x /etc/systemd/system/power-exporter.service
|
chmod +x /etc/systemd/system/ups-exporter.service
|
||||||
systemctl enable power-exporter
|
systemctl enable ups-exporter
|
||||||
systemctl restart power-exporter
|
systemctl restart ups-exporter
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
sleep 1
|
sleep 1
|
||||||
echo ""
|
echo ""
|
||||||
journalctl -u power-exporter -n 1
|
journalctl -u ups-exporter -n 1
|
||||||
|
@ -3,7 +3,7 @@ Description=Export UPS metrics to webpage for scraping
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/root/.bun/bin/bun /usr/local/bin/power-exporter.js
|
ExecStart=/root/.bun/bin/bun /usr/local/bin/ups-exporter.js
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
Loading…
Reference in New Issue
Block a user