This repository was archived by the owner on Oct 30, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
package/opt/hassbian/suites/mosquitto Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments