CT: Z2Mqtt and NodeRed, Fixed udate scripts

This commit is contained in:
2022-08-27 17:58:00 +02:00
parent 805b566786
commit dbf37bb4e2
3 changed files with 8 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/ash
#Run folowing commands as 'node' user
sudo -u node ash << EOF
pm2 stop nodered
/usr/local/bin/pm2 stop nodered
npm install --prefix /opt/node/node-red/app node-red @node-red-contrib-themes/midnight-red
npm update --prefix /opt/node/node-red/app
pm2 start nodered
/usr/local/bin/pm2 start nodered
EOF