From 984d8fc249431aac1735b1926a3ca97f4724a67b Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 17 Aug 2023 05:21:36 -0400 Subject: [PATCH] Update node-red-install.sh add `node-red-start`, `node-red-stop`, `node-red-restart` and `node-red-log` commands --- install/node-red-install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install/node-red-install.sh b/install/node-red-install.sh index 8e4d803b..22909483 100644 --- a/install/node-red-install.sh +++ b/install/node-red-install.sh @@ -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"