qbittorrent-install.sh 956 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 qbittorrent-nox"
  19. $STD apt-get install -y qbittorrent-nox
  20. msg_ok "qbittorrent-nox"
  21. msg_info "Creating Service"
  22. cat <<EOF >/etc/systemd/system/qbittorrent-nox.service
  23. [Unit]
  24. Description=qBittorrent client
  25. After=network.target
  26. [Service]
  27. ExecStart=/usr/bin/qbittorrent-nox --webui-port=8090
  28. Restart=always
  29. [Install]
  30. WantedBy=multi-user.target
  31. EOF
  32. systemctl enable -q --now qbittorrent-nox
  33. msg_ok "Created Service"
  34. motd_ssh
  35. root
  36. msg_info "Cleaning up"
  37. $STD apt-get autoremove
  38. $STD apt-get autoclean
  39. msg_ok "Cleaned"