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

Commit 9692de3

Browse files
authored
Merge pull request #285 from ludeeus/bloodsucking-creatures
Use debian version of mosquitto for buster
2 parents f12e74d + 22cc77c commit 9692de3

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

  • package/opt/hassbian/suites/mosquitto

package/opt/hassbian/suites/mosquitto/install

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ function install {
3434
mkdir -p /var/lib/mosquitto
3535
chown mosquitto:mosquitto /var/lib/mosquitto
3636

37-
echo "Installing repository key"
38-
wget -O - http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | apt-key add -
37+
echo "Installing mosquitto"
38+
if [ "$(hassbian.info.version.osreleasename)" != "buster" ]; then
39+
echo "Installing repository key"
40+
wget -O - http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | apt-key add -
3941

40-
echo "Adding repository"
41-
if [ ! -f /etc/apt/sources.list.d/mosquitto-stretch.list ]
42-
then
43-
curl -o /etc/apt/sources.list.d/mosquitto-stretch.list http://repo.mosquitto.org/debian/mosquitto-stretch.list
44-
else
45-
echo "Already present, skipping..."
42+
echo "Adding repository"
43+
if [ ! -f /etc/apt/sources.list.d/mosquitto-stretch.list ]
44+
then
45+
curl -o /etc/apt/sources.list.d/mosquitto-stretch.list http://repo.mosquitto.org/debian/mosquitto-stretch.list
46+
else
47+
echo "Already present, skipping..."
48+
fi
4649
fi
4750

4851
hassbian.suite.helper.install.apt mosquitto mosquitto-clients

0 commit comments

Comments
 (0)