updated naming

This commit is contained in:
root 2024-07-22 13:51:59 -04:00
parent f3e42189f2
commit d47f8f5152
3 changed files with 8 additions and 8 deletions

View File

@ -13,17 +13,17 @@ fi
# Setup exporter
echo "Installing Exporter..."
cp power-exporter.js /usr/local/bin/power-exporter.js
chmod +x /usr/local/bin/power-exporter.js
cp ups-exporter.js /usr/local/bin/ups-exporter.js
chmod +x /usr/local/bin/ups-exporter.js
# Setup service
echo "Stting Up Service..."
cp power-exporter.service /etc/systemd/system/power-exporter.service
chmod +x /etc/systemd/system/power-exporter.service
systemctl enable power-exporter
systemctl restart power-exporter
cp ups-exporter.service /etc/systemd/system/ups-exporter.service
chmod +x /etc/systemd/system/ups-exporter.service
systemctl enable ups-exporter
systemctl restart ups-exporter
echo "Done!"
sleep 1
echo ""
journalctl -u power-exporter -n 1
journalctl -u ups-exporter -n 1

View File

@ -3,7 +3,7 @@ Description=Export UPS metrics to webpage for scraping
After=network.target
[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
[Install]