diff --git a/ct/alpine-node-red.sh b/ct/alpine-node-red.sh index 727cb3808..5c2afbec9 100644 --- a/ct/alpine-node-red.sh +++ b/ct/alpine-node-red.sh @@ -32,10 +32,6 @@ function update_script() { $STD npm install -g --unsafe-perm node-red msg_ok "Updated Node-RED" - msg_info "Restarting Node-RED" - $STD rc-service nodered restart - msg_ok "Restarted Node-RED" - exit 0 } diff --git a/install/alpine-node-red-install.sh b/install/alpine-node-red-install.sh index 1feaf293b..81598c2f8 100644 --- a/install/alpine-node-red-install.sh +++ b/install/alpine-node-red-install.sh @@ -35,28 +35,5 @@ chown -R nodered:users /home/nodered chmod 750 /home/nodered msg_ok "Created /home/nodered" -msg_info "Creating Node-RED Service" -service_path="/etc/init.d/nodered" - -echo '#!/sbin/openrc-run -description="Node-RED Service" - -command="/usr/local/bin/node-red" -command_args="--max-old-space-size=128 -v" -command_user="nodered" -pidfile="/var/run/nodered.pid" - -depend() { - use net -}' >$service_path - -chmod +x $service_path -$STD rc-update add nodered default -msg_ok "Created Node-RED Service" - -msg_info "Starting Node-RED" -$STD rc-service nodered start -msg_ok "Started Node-RED" - motd_ssh customize