From 237d565dd3a4813ba2072a980a03c1913929f4fe Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sat, 20 Oct 2018 11:04:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91Fixes=20an=20startup=20issue=20wher?= =?UTF-8?q?e=20allow=5Fanonymous=20was=20true=20and=20no=20users=20was=20d?= =?UTF-8?q?efined.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt/rootfs/etc/cont-init.d/20-mqtt_broker.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mqtt/rootfs/etc/cont-init.d/20-mqtt_broker.sh b/mqtt/rootfs/etc/cont-init.d/20-mqtt_broker.sh index 41c0dcd..0729f9a 100644 --- a/mqtt/rootfs/etc/cont-init.d/20-mqtt_broker.sh +++ b/mqtt/rootfs/etc/cont-init.d/20-mqtt_broker.sh @@ -74,6 +74,9 @@ if hass.config.true 'broker.enabled'; then echo "allow_anonymous false" >> "$CONFIG" fi + # Create ACL file + touch "$ACL_FILE" + # Set username and password for the broker if ! hass.config.true 'leave_front_door_open'; then touch "$PWFILE"