mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Swizzin (#6962)
* 'Add new script' * clear \n * add outsource info in json --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							ef2e9803d0
						
					
				
				
					commit
					50c41cec72
				
			
							
								
								
									
										6
									
								
								ct/headers/swizzin
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								ct/headers/swizzin
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
   _____         _           _     
 | 
			
		||||
  / ___/      __(_)_______  (_)___ 
 | 
			
		||||
  \__ \ | /| / / /_  /_  / / / __ \
 | 
			
		||||
 ___/ / |/ |/ / / / /_/ /_/ / / / /
 | 
			
		||||
/____/|__/|__/_/ /___/___/_/_/ /_/ 
 | 
			
		||||
                                   
 | 
			
		||||
							
								
								
									
										43
									
								
								ct/swizzin.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								ct/swizzin.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,43 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
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!"
 | 
			
		||||
    exit
 | 
			
		||||
  fi
 | 
			
		||||
  msg_info "Running 'sudo box update' inside the container"
 | 
			
		||||
  $STD sudo box update
 | 
			
		||||
  msg_ok "Update finished"
 | 
			
		||||
  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}If installed panel, access through the following URL:${CL}"
 | 
			
		||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
 | 
			
		||||
							
								
								
									
										52
									
								
								frontend/public/json/swizzin.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								frontend/public/json/swizzin.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
{
 | 
			
		||||
	"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": "Installation might take a long time if choosing to install many apps. Be patient.",
 | 
			
		||||
			"type": "info"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"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"
 | 
			
		||||
		},
 | 
			
		||||
    {
 | 
			
		||||
			"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": "WARNING: Installation sources scripts outside of Community Scripts repo. Please check the source before installing.",
 | 
			
		||||
      "type": "warning"
 | 
			
		||||
    }
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										34
									
								
								install/swizzin-install.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								install/swizzin-install.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
#!/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_warn "WARNING: This script will run an external installer from a third-party source (https://swizzin.ltd/)."
 | 
			
		||||
msg_warn "The following code is NOT maintained or audited by our repository."
 | 
			
		||||
msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:"
 | 
			
		||||
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→  https://s5n.sh"
 | 
			
		||||
echo
 | 
			
		||||
read -r -p "${TAB3}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 10
 | 
			
		||||
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"
 | 
			
		||||
		Reference in New Issue
	
	Block a user