Skip to content

Commit

Permalink
Update nodejs-apps.bash
Browse files Browse the repository at this point in the history
test with apt-get install nodejs

Signed-off-by: Carsten Mogge <[email protected]>
  • Loading branch information
Larsen-Locke committed Jan 24, 2024
1 parent 0fcfc82 commit 8b1ef0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ zigbee2mqtt_setup() {
if ! (whiptail --title "Zigbee2MQTT installation" --yes-button "Continue" --no-button "Cancel" --yesno "$z2mInstalledText" 14 80); then echo "CANCELED"; return 0; fi
fi

command -v npm >/dev/null 2>&1 || apt-get install nodejs;

if ! cond_redirect fix_permissions /opt/zigbee2mqtt "${username:-openhabian}:openhab" 644 755; then echo "FAILED (zigbee2mqtt set permissions)"; return 1; fi
if ! cond_redirect fix_permissions /var/log/zigbee2mqtt "${username:-openhabian}:openhab" 644 755; then echo "FAILED (zigbee2mqtt set permissions)"; return 1; fi

Expand Down

0 comments on commit 8b1ef0e

Please sign in to comment.