From 6e0f3742852bec6d02e6ea2b47ea43480fb20957 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 8 Mar 2024 10:29:48 -0500 Subject: [PATCH] Update mqtt-install.sh add gpg --- install/mqtt-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/mqtt-install.sh b/install/mqtt-install.sh index 48cff6f1..1f1d0d31 100644 --- a/install/mqtt-install.sh +++ b/install/mqtt-install.sh @@ -17,18 +17,17 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc +$STD apt-get install -y gpg msg_ok "Installed Dependencies" msg_info "Installing Mosquitto MQTT Broker" if [ "$PCT_OSTYPE" == "debian" ]; then - set +Eeuo pipefail 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 gpg --keyserver keyserver.ubuntu.com --recv-keys 779B22DFB3E717B7 >/dev/null 2>&1 gpg --export 779B22DFB3E717B7 | tee /etc/apt/trusted.gpg.d/mosquitto.gpg >/dev/null 2>&1 echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/mosquitto.gpg] https://repo.mosquitto.org/debian ${VERSION} main" >/etc/apt/sources.list.d/mosquitto-${VERSION}.list - set -Eeuo pipefail $STD apt-get update fi $STD apt-get -y install mosquitto