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

@@ -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

View File

@@ -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