Update alpine-zigbee2mqtt-install.sh
tweaks
This commit is contained in:
parent
ba752674f3
commit
638babe5c3
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Alpine-Zigbee2MQTT"
|
msg_info "Installing Alpine-Zigbee2MQTT"
|
||||||
$STD apk add 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
|
$STD rc-service zigbee2mqtt restart
|
||||||
msg_ok "Installed Alpine-Zigbee2MQTT"
|
msg_ok "Installed Alpine-Zigbee2MQTT"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue