CT: Z2Mqtt and NodeRed, Fixed udate scripts
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
#Run folowing commands as 'node' user
|
#Run folowing commands as 'node' user
|
||||||
sudo -u node ash << EOF
|
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 install --prefix /opt/node/node-red/app node-red @node-red-contrib-themes/midnight-red
|
||||||
npm update --prefix /opt/node/node-red/app
|
npm update --prefix /opt/node/node-red/app
|
||||||
pm2 start nodered
|
/usr/local/bin/pm2 start nodered
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#Run folowing commands as 'node' user
|
#Run folowing commands as 'node' user
|
||||||
sudo -u node ash << EOF
|
sudo -u node ash << EOF
|
||||||
pm2 stop zigbee2mqtt
|
/usr/local/bin/pm2 stop zigbee2mqtt
|
||||||
cd /opt/node/zigbee2mqtt
|
cd /opt/node/zigbee2mqtt
|
||||||
ash update.sh
|
ash update.sh
|
||||||
pm2 start zigbee2mqtt
|
/usr/local/bin/pm2 start zigbee2mqtt
|
||||||
EOF
|
EOF
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#Run folowing commands as 'node' user
|
#Run folowing commands as 'node' user
|
||||||
sudo -u node ash << EOF
|
sudo -u node ash << EOF
|
||||||
pm2 stop zwavejs2mqtt
|
/usr/local/bin/pm2 stop zwavejs2mqtt
|
||||||
cd /opt/node/zwavejs2mqtt
|
cd /opt/node/zwavejs2mqtt
|
||||||
git pull
|
git pull
|
||||||
yarn install
|
/usr/local/bin/yarn install
|
||||||
yarn run build
|
/usr/local/bin/yarn run build
|
||||||
pm2 start zwavejs2mqtt
|
/usr/local/bin/pm2 start zwavejs2mqtt
|
||||||
EOF
|
EOF
|
||||||
Reference in New Issue
Block a user