diff --git a/ct/qui.sh b/ct/qui.sh new file mode 100644 index 000000000..4984e1b7a --- /dev/null +++ b/ct/qui.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/autobrr/qui + +APP="Qui" +var_tags="${var_tags:-torrent}" +var_disk="${var_disk:-10}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-1024}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -f /usr/local/bin/qui ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + if check_for_gh_release "Qui" "autobrr/qui"; then + msg_info "Stopping Service" + systemctl stop qui + msg_ok "Stopped Service" + + fetch_and_deploy_gh_release "qui" "autobrr/qui" "prebuild" "latest" "/tmp/qui" "qui_*_linux_x86_64.tar.gz" + + msg_info "Updating qui" + mv /tmp/qui/qui /usr/local/bin/qui + chmod +x /usr/local/bin/qui + rm -rf /tmp/qui + msg_ok "Updated qui" + + msg_info "Starting Service" + systemctl start qui + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + exit +} + +start +build_container +description + +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7476${CL}" diff --git a/frontend/public/json/qui.json b/frontend/public/json/qui.json new file mode 100644 index 000000000..bef257e27 --- /dev/null +++ b/frontend/public/json/qui.json @@ -0,0 +1,48 @@ +{ + "name": "Qui", + "slug": "qui", + "categories": [ + 7 + ], + "date_created": "2026-01-13", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 7476, + "documentation": "https://github.com/autobrr/qui", + "website": "https://github.com/autobrr/qui", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/qui.webp", + "config_path": "/root/.config/qui/config.toml", + "description": "Qui is a modern, self-hosted web interface for managing multiple qBittorrent instances with support for 10k+ torrents. It provides a clean and responsive interface for monitoring and controlling your qBittorrent downloads across multiple servers.", + "install_methods": [ + { + "type": "default", + "script": "ct/qui.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 10, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "After installation, create a user account by entering the container and running `qui create-user`.", + "type": "info" + }, + { + "text": "Configuration file is located at /root/.config/qui/config.toml", + "type": "info" + }, + { + "text": "Database is located at /root/.config/qui/qui.db", + "type": "info" + } + ] +} diff --git a/install/qui-install.sh b/install/qui-install.sh new file mode 100644 index 000000000..8e45ed000 --- /dev/null +++ b/install/qui-install.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/autobrr/qui + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "qui" "autobrr/qui" "prebuild" "latest" "/usr/local/bin" "qui_*_linux_x86_64.tar.gz" +chmod +x /usr/local/bin/qui +ln -sf /usr/local/bin/qui /usr/bin/qui +ln -sf /usr/local/bin/qui /opt/qui + +msg_info "Creating Qui Service" +cat </etc/systemd/system/qui.service +[Unit] +Description=Qui - qBittorrent Web UI +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/qui serve +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now qui +msg_ok "Created Qui Service" + +motd_ssh +customize +cleanup_lxc