From 22cc77c7e61e05fb2a74bb788e3181f677146053 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Mon, 6 May 2019 21:33:30 +0200 Subject: [PATCH] Use debian version of mosquitto for buster --- package/opt/hassbian/suites/mosquitto/install | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/package/opt/hassbian/suites/mosquitto/install b/package/opt/hassbian/suites/mosquitto/install index 772ade8a..ae7294b3 100644 --- a/package/opt/hassbian/suites/mosquitto/install +++ b/package/opt/hassbian/suites/mosquitto/install @@ -34,15 +34,18 @@ function install { mkdir -p /var/lib/mosquitto chown mosquitto:mosquitto /var/lib/mosquitto - echo "Installing repository key" - wget -O - http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | apt-key add - + echo "Installing mosquitto" + if [ "$(hassbian.info.version.osreleasename)" != "buster" ]; then + echo "Installing repository key" + wget -O - http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | apt-key add - - echo "Adding repository" - if [ ! -f /etc/apt/sources.list.d/mosquitto-stretch.list ] - then - curl -o /etc/apt/sources.list.d/mosquitto-stretch.list http://repo.mosquitto.org/debian/mosquitto-stretch.list - else - echo "Already present, skipping..." + echo "Adding repository" + if [ ! -f /etc/apt/sources.list.d/mosquitto-stretch.list ] + then + curl -o /etc/apt/sources.list.d/mosquitto-stretch.list http://repo.mosquitto.org/debian/mosquitto-stretch.list + else + echo "Already present, skipping..." + fi fi hassbian.suite.helper.install.apt mosquitto mosquitto-clients