node-red-run/install

10 lines
281 B
Bash
Executable File

#!/bin/bash
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