pve-scripts/install/emqx-install.sh

34 lines
768 B
Bash
Raw Normal View History

2024-08-05 04:47:20 -07:00
#!/usr/bin/env bash
# Copyright (c) 2024 aaron
# Author: aaron
# License: none
# https://gitlab.peanutsmediaserver.com/aaron/pve-scripts/raw/branch/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
2024-08-05 06:01:31 -07:00
msg_info "Installing Dependencies Bitches"
2024-08-05 04:47:20 -07:00
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
2024-08-05 06:01:31 -07:00
msg_ok "Installed Dependencies"
2024-08-05 04:47:20 -07:00
2024-08-05 06:01:31 -07:00
msg_info "Installing EMQX"
$STD bash <(curl -fsSL https://packagecloud.io/install/repositories/emqx/emqx/script.deb.sh)
$STD apt-get install -y emqx
$STD systemctl enable --now emqx
msg_ok "Installed EMQX"
2024-08-05 04:47:20 -07:00
motd_ssh
customize
msg_info "Cleaning up"
2024-08-05 06:01:31 -07:00
apt-get autoremove >/dev/null
apt-get autoclean >/dev/null
2024-08-05 04:47:20 -07:00
msg_ok "Cleaned"