omada-install.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. $STD apt-get install -y gnupg
  18. $STD apt-get install -y openjdk-8-jre-headless
  19. $STD apt-get install -y jsvc
  20. wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
  21. $STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
  22. msg_ok "Installed Dependencies"
  23. msg_info "Installing Omada Controller v5.9.31"
  24. wget -qL https://static.tp-link.com/upload/software/2023/202303/20230321/Omada_SDN_Controller_v5.9.31_Linux_x64.deb
  25. $STD dpkg -i Omada_SDN_Controller_v5.9.31_Linux_x64.deb
  26. msg_ok "Installed Omada Controller"
  27. motd_ssh
  28. root
  29. msg_info "Cleaning up"
  30. rm -f Omada_SDN_Controller_v5.9.31_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb
  31. $STD apt-get autoremove
  32. $STD apt-get autoclean
  33. msg_ok "Cleaned"