Skip to content

Commit 232121c

Browse files
committed
Update nodejs-apps.bash
Signed-off-by: Carsten Mogge <carsten.mogge@gmail.com>
1 parent 4c8206a commit 232121c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

functions/nodejs-apps.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ 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-
systemctl daemon-reload
313+
if systemctl >/dev/null 2>&1; then
314+
systemctl daemon-reload
315+
fi
314316
systemctl enable --now zigbee2mqtt.service
315317

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

0 commit comments

Comments
 (0)