diff --git a/install/mqtt-install.sh b/install/mqtt-install.sh index bb11b489..1c87cf9e 100644 --- a/install/mqtt-install.sh +++ b/install/mqtt-install.sh @@ -21,6 +21,11 @@ $STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Installing Mosquitto MQTT Broker" +source /etc/os-release +curl -fsSL http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key >/usr/share/keyrings/mosquitto-repo.gpg.key +chmod go+r /usr/share/keyrings/mosquitto-repo.gpg.key +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/mosquitto-repo.gpg.key] http://repo.mosquitto.org/debian ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/mosquitto.list +$STD apt-get update $STD apt-get -y install mosquitto $STD apt-get -y install mosquitto-clients cat </etc/mosquitto/conf.d/default.conf