CT: Z2Mqtt and NodeRed, Fixed udate scripts
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
#Run folowing commands as 'node' user
|
||||
sudo -u node ash << EOF
|
||||
pm2 stop zigbee2mqtt
|
||||
/usr/local/bin/pm2 stop zigbee2mqtt
|
||||
cd /opt/node/zigbee2mqtt
|
||||
ash update.sh
|
||||
pm2 start zigbee2mqtt
|
||||
/usr/local/bin/pm2 start zigbee2mqtt
|
||||
EOF
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
#Run folowing commands as 'node' user
|
||||
sudo -u node ash << EOF
|
||||
pm2 stop zwavejs2mqtt
|
||||
/usr/local/bin/pm2 stop zwavejs2mqtt
|
||||
cd /opt/node/zwavejs2mqtt
|
||||
git pull
|
||||
yarn install
|
||||
yarn run build
|
||||
pm2 start zwavejs2mqtt
|
||||
/usr/local/bin/yarn install
|
||||
/usr/local/bin/yarn run build
|
||||
/usr/local/bin/pm2 start zwavejs2mqtt
|
||||
EOF
|
||||
Reference in New Issue
Block a user