There was an error while loading. Please reload this page.
1 parent 232121c commit eb5e0b2Copy full SHA for eb5e0b2
1 file changed
functions/nodejs-apps.bash
@@ -310,10 +310,10 @@ EOF
310
cd /opt/zigbee2mqtt || (echo "FAILED (cd)"; return 1)
311
cond_redirect sudo -u "${username:-openhabian}" pnpm install --frozen-lockfile --ignore-scripts=false
312
313
- if systemctl >/dev/null 2>&1; then
+ if [ "$(basename "$(ps -o comm= 1)")" = "systemd" ]; then
314
systemctl daemon-reload
315
+ systemctl enable --now zigbee2mqtt.service
316
fi
- systemctl enable --now zigbee2mqtt.service
317
318
[[ -n $INTERACTIVE ]] && whiptail --title "Operation successful" --msgbox "$installSuccessText" 15 80
319
}
0 commit comments