Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Use debian version of mosquitto for buster #285

Merged
merged 1 commit into from
May 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions package/opt/hassbian/suites/mosquitto/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down