2023-03-22 20:48:20 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2025-01-01 13:37:29 +01:00
|
|
|
# Copyright (c) 2021-2025 tteck
|
2023-03-22 20:48:20 -04:00
|
|
|
# Author: tteck (tteckster)
|
2025-03-04 17:54:20 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://www.emqx.com/en
|
2023-03-22 20:48:20 -04:00
|
|
|
|
2025-03-24 14:20:56 +01:00
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
2023-03-22 20:48:20 -04:00
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
2025-07-09 10:57:15 +02:00
|
|
|
msg_info "Installing dependencies"
|
|
|
|
|
$STD apt-get install -y \
|
|
|
|
|
apt-transport-https \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
lsb-release
|
|
|
|
|
msg_ok "Installed dependencies"
|
|
|
|
|
|
2023-03-22 20:48:20 -04:00
|
|
|
msg_info "Installing EMQX"
|
2025-07-09 10:57:15 +02:00
|
|
|
curl -fsSL https://packagecloud.io/emqx/emqx/gpgkey | gpg --dearmor -o /usr/share/keyrings/emqx-archive-keyring.gpg
|
|
|
|
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/emqx-archive-keyring.gpg] https://packagecloud.io/emqx/emqx/debian/ bookworm main" >/etc/apt/sources.list.d/emqx.list
|
2023-03-22 20:48:20 -04:00
|
|
|
$STD apt-get install -y emqx
|
|
|
|
|
msg_ok "Installed EMQX"
|
|
|
|
|
|
|
|
|
|
motd_ssh
|
2023-05-15 07:39:30 -04:00
|
|
|
customize
|
2023-03-22 20:48:20 -04:00
|
|
|
|
|
|
|
|
msg_info "Cleaning up"
|
2025-07-09 10:57:15 +02:00
|
|
|
$STD apt-get autoremove
|
|
|
|
|
$STD apt-get autoclean
|
2023-03-22 20:48:20 -04:00
|
|
|
msg_ok "Cleaned"
|