From 01e5e0fa0a22e0dda52c746d645f482b45495c87 Mon Sep 17 00:00:00 2001 From: Joshua Shabanov Date: Fri, 1 Aug 2025 20:14:38 +0300 Subject: [PATCH 1/4] ct swizzin.sh --- ct/swizzin.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ct/swizzin.sh diff --git a/ct/swizzin.sh b/ct/swizzin.sh new file mode 100644 index 00000000..2311e7c6 --- /dev/null +++ b/ct/swizzin.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +# Swizzin Seedbox – Proxmox Helper‑Script (CT) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: EEJoshua +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://swizzin.ltd/ + +APP="Swizzin" +var_tags="${var_tags:-seedbox}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-20}" +var_os="${var_os:-debian}" +var_version="${var_version:-12}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if ! command -v sudo box >/dev/null 2>&1; then + msg_error "No ${APP} installation found!\n" + exit + fi + msg_info "Running 'sudo box update' inside the container\n" + sudo box update + msg_ok "Update finished\n" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${CREATING}${GN}${APP} Access it by running 'sudo box' inside the new container${CL}" +echo -e "${INFO}${YW}If installed panel, access through the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" + From 2d5052bca598889ebba9421c7383bee6b1bc721e Mon Sep 17 00:00:00 2001 From: Joshua Shabanov Date: Fri, 1 Aug 2025 20:15:07 +0300 Subject: [PATCH 2/4] install swizzin-install.sh --- install/swizzin-install.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 install/swizzin-install.sh diff --git a/install/swizzin-install.sh b/install/swizzin-install.sh new file mode 100644 index 00000000..6cdca80d --- /dev/null +++ b/install/swizzin-install.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: EEJoshua +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://swizzin.ltd/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y curl wget gnupg lsb-release +msg_ok "Dependencies installed" +echo -e "Launching upstream Swizzin installer..." +bash <(curl -sL s5n.sh) +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" + +msg_ok "Swizzin base installation complete. Re‑login and run 'sudo box' to add apps." From 64444efb157291f3b035af02aa8434d603c2718d Mon Sep 17 00:00:00 2001 From: Joshua Shabanov Date: Fri, 1 Aug 2025 20:16:31 +0300 Subject: [PATCH 3/4] json swizzin.json --- frontend/public/json/swizzin.json | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 frontend/public/json/swizzin.json diff --git a/frontend/public/json/swizzin.json b/frontend/public/json/swizzin.json new file mode 100644 index 00000000..2f08f31f --- /dev/null +++ b/frontend/public/json/swizzin.json @@ -0,0 +1,48 @@ +{ + "name": "Swizzin", + "slug": "swizzin", + "categories": [ + 15 + ], + "date_created": "2025-08-01", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 80, + "documentation": "https://swizzin.ltd/getting-started", + "config_path": "/etc/swizzin/", + "website": "https://swizzin.ltd/", + "logo": "https://swizzin.ltd/img/logo-sm.png", + "description": "Swizzin is a light-weight, modular, and user-friendly seedbox solution for Debian-based servers. It allows for the easy installation and management of a wide variety of applications commonly used for torrenting and media management, such as rTorrent, Sonarr, Radarr, and Plex, all accessible through a command-line utility or a web-based dashboard.", + "install_methods": [ + { + "type": "default", + "script": "ct/swizzin.sh", + "resources": { + "cpu": 2, + "ram": 4096, + "hdd": 20, + "os": "Debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "It is very recommended to install at least the 'panel' for web access, and 'nginx' for easy access to other apps.", + "type": "warning" + }, + { + "text": "Installation might take a long time if choosing to install many apps. Be patient.", + "type": "warning" + }, + { + "text": "Swizzin is a management suite, not a single application. Use the 'box' command inside the container to install/manage individual apps like rTorrent, Sonarr, etc. A full list can be found in documentation.", + "type": "info" + } + ] +} \ No newline at end of file From bca8a10f7e447e666448497badd3ef2fb9758d2b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:38:06 +0200 Subject: [PATCH 4/4] changes --- install/swizzin-install.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/install/swizzin-install.sh b/install/swizzin-install.sh index 6cdca80d..2e6b5742 100644 --- a/install/swizzin-install.sh +++ b/install/swizzin-install.sh @@ -13,14 +13,20 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y curl wget gnupg lsb-release -msg_ok "Dependencies installed" -echo -e "Launching upstream Swizzin installer..." +msg_custom "!" "$YELLOW" "WARNING: This script will run an external installer from a third-party source (swizzin.io)." +msg_custom "!" "$YELLOW" "You are about to execute code that is NOT maintained by our repository." +echo +read -r -p "Do you want to continue? [y/N]: " CONFIRM +if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then + msg_error "Aborted by user. No changes have been made." + exit 1 +fi bash <(curl -sL s5n.sh) + +motd_ssh +customize + msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" - -msg_ok "Swizzin base installation complete. Re‑login and run 'sudo box' to add apps."