mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-26 23:11:56 +00:00
Update node-red-install.sh
add `node-red-start`, `node-red-stop`, `node-red-restart` and `node-red-log` commands
This commit is contained in:
parent
25c18fbf9e
commit
984d8fc249
@ -30,6 +30,14 @@ msg_ok "Installed Node.js"
|
||||
|
||||
msg_info "Installing Node-Red"
|
||||
$STD npm install -g --unsafe-perm node-red
|
||||
echo "journalctl -f -n 100 -u nodered -o cat" >/usr/bin/node-red-log
|
||||
chmod +x /usr/bin/node-red-log
|
||||
echo "systemctl stop nodered" >/usr/bin/node-red-stop
|
||||
chmod +x /usr/bin/node-red-stop
|
||||
echo "systemctl start nodered" >/usr/bin/node-red-start
|
||||
chmod +x /usr/bin/node-red-start
|
||||
echo "systemctl restart nodered" >/usr/bin/node-red-restart
|
||||
chmod +x /usr/bin/node-red-restart
|
||||
msg_ok "Installed Node-Red"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
Loading…
Reference in New Issue
Block a user