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

Commit

Permalink
Merge pull request #285 from ludeeus/bloodsucking-creatures
Browse files Browse the repository at this point in the history
Use debian version of mosquitto for buster
  • Loading branch information
Landrash committed May 6, 2019
2 parents f12e74d + 22cc77c commit 9692de3
Showing 1 changed file with 11 additions and 8 deletions.
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

0 comments on commit 9692de3

Please sign in to comment.