node-red-run/update

7 lines
191 B
Bash
Executable File

#!/bin/bash
# run global update on node-red
sudo systemctl stop nodered
sudo npm install -g --unsafe-perm --prefix /usr node-red
sudo systemctl daemon-reload
sudo systemctl restart node-red