From f796767e06dbe7d89a6d3a877dab106fb27dc238 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 7 Aug 2023 14:00:26 -0400 Subject: [PATCH] Update mqtt-install.sh create `/etc/mosquitto/conf.d/default.conf` --- install/mqtt-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/mqtt-install.sh b/install/mqtt-install.sh index 9534db5a..5f66caa7 100644 --- a/install/mqtt-install.sh +++ b/install/mqtt-install.sh @@ -22,6 +22,12 @@ msg_ok "Installed Dependencies" msg_info "Installing Mosquitto MQTT Broker" $STD apt-get -y install mosquitto $STD apt-get -y install mosquitto-clients +cat </etc/mosquitto/conf.d/default.conf +allow_anonymous false +persistence true +password_file /etc/mosquitto/passwd +listener 1883 +EOF msg_ok "Installed Mosquitto MQTT Broker" motd_ssh