z2qtt: fixed init script

yarn install using --cwd does not behave correctly
This commit is contained in:
2021-11-26 22:37:50 +01:00
parent 8f6f48fd0e
commit 17fe3bcae1

View File

@@ -13,7 +13,7 @@ printf "frontend:\n port: 5002" >> /opt/node/zigbee2mqtt/data/configuration.yam
#Install zwavejs2mqtt
git clone https://github.com/zwave-js/zwavejs2mqtt /opt/node/zwavejs2mqtt
yarn --cwd /opt/node/zwavejs2mqtt install
(cd /opt/node/zwavejs2mqtt; yarn install)
yarn --cwd /opt/node/zwavejs2mqtt run build
#Save PM2 statup config