node-red-run/install-service

11 lines
326 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
sudo rm /etc/systemd/system/node-red@.service
sudo rm /etc/systemd/system/node-red.service
sudo ln -s /opt/node-red-run/node-red.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable node-red
sudo systemctl restart node-red
sleep 5
sudo journalctl --unit=node-red -n 50 --no-pager
exit 1