ombi-install.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Ombi"
  19. LATEST=$(curl -sL https://api.github.com/repos/Ombi-app/Ombi/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
  20. # wget -q https://github.com/Ombi-app/Ombi/releases/download/${LATEST}/linux-x64.tar.gz
  21. wget -q https://github.com/Ombi-app/Ombi/releases/download/v4.43.2/linux-x64.tar.gz
  22. mkdir -p /opt/ombi
  23. tar -xzf linux-x64.tar.gz -C /opt/ombi
  24. msg_ok "Installed Ombi"
  25. msg_info "Creating Service"
  26. cat <<EOF >/etc/systemd/system/ombi.service
  27. [Unit]
  28. Description=Ombi
  29. After=syslog.target network-online.target
  30. [Service]
  31. ExecStart=/opt/ombi/./Ombi
  32. WorkingDirectory=/opt/ombi
  33. Restart=always
  34. [Install]
  35. WantedBy=multi-user.target
  36. EOF
  37. systemctl enable -q --now ombi.service
  38. msg_ok "Created Service"
  39. motd_ssh
  40. customize
  41. msg_info "Cleaning up"
  42. $STD apt-get autoremove
  43. $STD apt-get autoclean
  44. msg_ok "Cleaned"