From 86d1a388f9287984459bd736bb36796dc3cc8941 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 27 Aug 2023 10:09:11 -0400 Subject: [PATCH] Update mqtt-install.sh reintroduce Mosquitto repositories --- install/mqtt-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/mqtt-install.sh b/install/mqtt-install.sh index 5f66caa7..04ea968a 100644 --- a/install/mqtt-install.sh +++ b/install/mqtt-install.sh @@ -20,6 +20,12 @@ $STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing Mosquitto MQTT Broker" +if [ "$PCT_OSTYPE" == "debian" ]; then + VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" + wget -qO- http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key >/etc/apt/trusted.gpg.d/mosquitto-repo.asc + wget -qO /etc/apt/sources.list.d/mosquitto-${VERSION}.list http://repo.mosquitto.org/debian/mosquitto-${VERSION}.list + $STD apt-get update +fi $STD apt-get -y install mosquitto $STD apt-get -y install mosquitto-clients cat </etc/mosquitto/conf.d/default.conf