Skip to content

Commit 83b9339

Browse files
authored
use debian source for direct installation of MQTT (#7423)
as newer Debian contains mosquitto in sources, directly install it without adding extra repository
1 parent 7ce47ad commit 83b9339

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

install/mqtt-install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ update_os
1515

1616
msg_info "Installing Mosquitto MQTT Broker"
1717
source /etc/os-release
18-
curl -fsSL http://repo.mosquitto.org/debian/mosquitto-repo.gpg >/usr/share/keyrings/mosquitto-repo.gpg.key
19-
chmod go+r /usr/share/keyrings/mosquitto-repo.gpg.key
20-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/mosquitto-repo.gpg.key] http://repo.mosquitto.org/debian ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/mosquitto.list
2118
$STD apt-get update
2219
$STD apt-get -y install mosquitto
2320
$STD apt-get -y install mosquitto-clients
21+
2422
cat <<EOF >/etc/mosquitto/conf.d/default.conf
2523
allow_anonymous false
2624
persistence true

0 commit comments

Comments
 (0)