emqx-install.sh 747 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. # Copyright (c) 2021-2023 tteck
  3. # Author: tteck (tteckster)
  4. # License: MIT
  5. # https://github.com/tteck/Proxmox/raw/main/LICENSE
  6. source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
  7. color
  8. verb_ip6
  9. catch_errors
  10. setting_up_container
  11. network_check
  12. update_os
  13. msg_info "Installing Dependencies"
  14. $STD apt-get install -y curl
  15. $STD apt-get install -y sudo
  16. $STD apt-get install -y mc
  17. msg_ok "Installed Dependencies"
  18. msg_info "Installing EMQX"
  19. $STD bash <(curl -fsSL https://packagecloud.io/install/repositories/emqx/emqx/script.deb.sh)
  20. $STD apt-get install -y emqx
  21. $STD systemctl enable --now emqx
  22. msg_ok "Installed EMQX"
  23. motd_ssh
  24. customize
  25. msg_info "Cleaning up"
  26. apt-get autoremove >/dev/null
  27. apt-get autoclean >/dev/null
  28. msg_ok "Cleaned"