Skip to content

Commit 73a5ed7

Browse files
committed
Update nodejs-apps.bash
Signed-off-by: Carsten Mogge <carsten.mogge@gmail.com>
1 parent eb5e0b2 commit 73a5ed7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

functions/nodejs-apps.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,8 @@ EOF
310310
cd /opt/zigbee2mqtt || (echo "FAILED (cd)"; return 1)
311311
cond_redirect sudo -u "${username:-openhabian}" pnpm install --frozen-lockfile --ignore-scripts=false
312312

313-
if [ "$(basename "$(ps -o comm= 1)")" = "systemd" ]; then
314-
systemctl daemon-reload
315-
systemctl enable --now zigbee2mqtt.service
316-
fi
313+
systemctl daemon-reload
314+
systemctl enable --now zigbee2mqtt.service
317315

318316
[[ -n $INTERACTIVE ]] && whiptail --title "Operation successful" --msgbox "$installSuccessText" 15 80
319317
}

0 commit comments

Comments
 (0)