Added CT's NodeJS, NodeRed, z2mqtt & nextcloud
This commit is contained in:
11
CT-Files/z2mqtt/Scripts/Update-Zwave2mqtt.sh
Normal file
11
CT-Files/z2mqtt/Scripts/Update-Zwave2mqtt.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/ash
|
||||
|
||||
#Run folowing commands as 'node' user
|
||||
sudo -u node ash << EOF
|
||||
pm2 stop zwavejs2mqtt
|
||||
cd /opt/node/zwavejs2mqtt
|
||||
git pull
|
||||
yarn install
|
||||
yarn run build
|
||||
pm2 start zwavejs2mqtt
|
||||
EOF
|
||||
Reference in New Issue
Block a user