From 638babe5c3d8076b456b1f968d2e1a76da48ea9c Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 18 Jan 2024 19:41:25 -0500 Subject: [PATCH] Update alpine-zigbee2mqtt-install.sh tweaks --- install/alpine-zigbee2mqtt-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/alpine-zigbee2mqtt-install.sh b/install/alpine-zigbee2mqtt-install.sh index cb5bb356..a98f1da5 100644 --- a/install/alpine-zigbee2mqtt-install.sh +++ b/install/alpine-zigbee2mqtt-install.sh @@ -23,7 +23,11 @@ msg_ok "Installed Dependencies" msg_info "Installing Alpine-Zigbee2MQTT" $STD apk add zigbee2mqtt -sed -i -e 's/#datadir="\/var\/lib\/zigbee2mqtt"/datadir="\/etc\/zigbee2mqtt"/' -e 's/#command_user="zigbee2mqtt"/command_user="zigbee2mqtt"/' /etc/conf.d/zigbee2mqtt +mkdir -p /root/.z2m +ln -s /etc/zigbee2mqtt/ /root/.z2m +chown -R root:root /etc/zigbee2mqtt /root/.z2m +sed -i -e 's/#datadir="\/var\/lib\/zigbee2mqtt"/datadir="\/etc\/zigbee2mqtt"/' -e 's/#command_user="zigbee2mqtt"/command_user="root"/' /etc/conf.d/zigbee2mqtt +$STD rc-update add zigbee2mqtt $STD rc-service zigbee2mqtt restart msg_ok "Installed Alpine-Zigbee2MQTT"