hyperion-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 lsb-release
  18. $STD apt-get install -y gpg
  19. $STD apt-get install -y apt-transport-https
  20. msg_ok "Installed Dependencies"
  21. msg_info "Installing Hyperion"
  22. wget -qO- https://apt.hyperion-project.org/hyperion.pub.key | gpg --dearmor -o /usr/share/keyrings/hyperion.pub.gpg
  23. sh -c 'echo "deb [signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.hyperion-project.org/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/hyperion.list'
  24. $STD apt-get update
  25. $STD apt-get install -y hyperion
  26. $STD systemctl enable --now hyperion@root.service
  27. msg_ok "Installed Hyperion"
  28. motd_ssh
  29. customize
  30. msg_info "Cleaning up"
  31. $STD apt-get autoremove >/dev/null
  32. $STD apt-get autoclean >/dev/null
  33. msg_ok "Cleaned"