Skip to content

Commit

Permalink
Update nodejs-apps.bash
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Mogge <[email protected]>
  • Loading branch information
Larsen-Locke committed Jan 24, 2024
1 parent ad48cc2 commit 0fcfc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ zigbee2mqtt_setup() {

echo -n "$(timestamp) [openHABian] Zigbee2MQTT install & config... "
cd /opt/zigbee2mqtt || (echo "FAILED (cd)"; return 1)
if ! cond_redirect sudo -u ${username:-openhabian} npm ci ; then echo "FAILED (npm ci)"; return 1; fi
if ! cond_redirect sudo -u "${username:-openhabian}" npm ci ; then echo "FAILED (npm ci)"; return 1; fi
sed -e "s|%adapter|$by_path_or_id/$selectedAdapter|g" /opt/openhabian/includes/zigbee2mqtt/configuration.yaml | sudo -u "${username:-openhabian}" dd status=none of=/opt/zigbee2mqtt/data/configuration.yaml
sed -i -e "s|%user%|$mqttUser|g" /opt/zigbee2mqtt/data/configuration.yaml
sed -i -e "s|%password%|$mqttPW|g" /opt/zigbee2mqtt/data/configuration.yaml
Expand Down

0 comments on commit 0fcfc82

Please sign in to comment.