mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-25 10:04:43 +00:00
Refactor (#14673)
This commit is contained in:
+13
-5
@@ -13,18 +13,26 @@ setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Mosquitto MQTT Broker"
|
||||
source /etc/os-release
|
||||
$STD apt update
|
||||
$STD apt -y install mosquitto mosquitto-clients
|
||||
setup_deb822_repo \
|
||||
"mqtt" \
|
||||
"https://repo.mosquitto.org/debian/mosquitto-repo.gpg" \
|
||||
"https://repo.mosquitto.org/debian" \
|
||||
"trixie"
|
||||
|
||||
msg_info "Installing Mosquitto MQTT Broker"
|
||||
$STD apt install -y \
|
||||
mosquitto \
|
||||
mosquitto-clients
|
||||
msg_ok "Installed Mosquitto MQTT Broker"
|
||||
|
||||
msg_info "Configuring Mosquitto MQTT Broker"
|
||||
cat <<EOF >/etc/mosquitto/conf.d/default.conf
|
||||
allow_anonymous false
|
||||
persistence true
|
||||
password_file /etc/mosquitto/passwd
|
||||
listener 1883
|
||||
EOF
|
||||
msg_ok "Installed Mosquitto MQTT Broker"
|
||||
msg_ok "Configured Mosquitto MQTT Broker"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
Reference in New Issue
Block a user