From dd369fc019529874193772ec6087eb46b10f0ffc Mon Sep 17 00:00:00 2001 From: Jacob Ledbetter Date: Wed, 11 Nov 2026 16:12:43 -0700 Subject: [PATCH] Add: Suwayomi Co-Authored-By: Claude Opus 5.5 --- ct/suwayomi.sh | 57 ++++++++++++++++++++++++++ install/suwayomi-install.sh | 81 +++++++++++++++++++++++++++++++++++++ json/suwayomi.json | 43 ++++++++++++++++++++ 3 files changed, 181 insertions(+) create mode 100644 ct/suwayomi.sh create mode 100644 install/suwayomi-install.sh create mode 100644 json/suwayomi.json diff --git a/ct/suwayomi.sh b/ct/suwayomi.sh new file mode 100644 index 0000000000..29ea4b039d --- /dev/null +++ b/ct/suwayomi.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jacob Ledbetter (CryoTheRenegade) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/Suwayomi/Suwayomi-Server + +APP="Suwayomi" +var_tags="${var_tags:-manga;media}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified +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 /opt/suwayomi/suwayomi ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "suwayomi" "Suwayomi/Suwayomi-Server"; then + msg_info "Stopping Suwayomi" + systemctl stop suwayomi + msg_ok "Stopped Suwayomi" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "suwayomi" "Suwayomi/Suwayomi-Server" "singlefile" "latest" "/opt/suwayomi" "Suwayomi-Server-v*.jar" + + msg_info "Starting Suwayomi" + systemctl start suwayomi + msg_ok "Started Suwayomi" + 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 "${GATEWAY}${BGN}http://${IP}:4567${CL}" diff --git a/install/suwayomi-install.sh b/install/suwayomi-install.sh new file mode 100644 index 0000000000..db82407654 --- /dev/null +++ b/install/suwayomi-install.sh @@ -0,0 +1,81 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jacob Ledbetter (CryoTheRenegade) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/Suwayomi/Suwayomi-Server + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y \ + libxss1 \ + libxext6 \ + libxrender1 \ + libxcomposite1 \ + libxdamage1 \ + libxkbcommon0 \ + libxtst6 \ + libxcursor1 \ + libglib2.0-0t64 \ + libnss3 \ + libdbus-1-3 \ + libpango-1.0-0 \ + libcairo2 \ + libasound2t64 \ + libatk-bridge2.0-0t64 \ + libcups2t64 \ + libdrm2 \ + libgbm1 \ + libegl1 \ + fonts-arphic-ukai \ + fonts-arphic-uming \ + fonts-ipafont-mincho \ + fonts-ipafont-gothic \ + fonts-unfonts-core \ + xvfb \ + xauth +msg_ok "Installed Dependencies" + +JAVA_VERSION="21" setup_java + +fetch_and_deploy_gh_release "suwayomi" "Suwayomi/Suwayomi-Server" "singlefile" "latest" "/opt/suwayomi" "Suwayomi-Server-v*.jar" + +msg_info "Configuring Suwayomi" +mkdir -p /opt/suwayomi_data +cat </opt/suwayomi_data/server.conf +server.systemTrayEnabled = false +server.initialOpenInBrowserEnabled = false +EOF +msg_ok "Configured Suwayomi" + +msg_info "Creating Service" +cat </etc/systemd/system/suwayomi.service +[Unit] +Description=Suwayomi Server +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/suwayomi_data +ExecStart=/usr/bin/xvfb-run -a /usr/bin/java -Dsuwayomi.tachidesk.config.server.rootDir=/opt/suwayomi_data -jar /opt/suwayomi/suwayomi +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now suwayomi +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/json/suwayomi.json b/json/suwayomi.json new file mode 100644 index 0000000000..cb9a398a51 --- /dev/null +++ b/json/suwayomi.json @@ -0,0 +1,43 @@ +{ + "name": "Suwayomi", + "slug": "suwayomi", + "categories": [ + 13 + ], + "date_created": "2026-11-11", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 4567, + "documentation": "https://github.com/Suwayomi/Suwayomi-Server/wiki", + "website": "https://suwayomi.org/", + "repository": "https://github.com/Suwayomi/Suwayomi-Server", + "architectures": ["amd64"], + "platforms": ["pve"], + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/suwayomi.webp", + "description": "Suwayomi is a free and open source manga reader server that runs extensions built for Mihon/Tachiyomi. It ships a web UI for browsing, reading, downloading and tracking manga, and syncs reading progress across devices.", + "install_methods": [ + { + "type": "default", + "script": "ct/suwayomi.sh", + "config_path": "/opt/suwayomi_data/server.conf", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 8, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Authentication is off by default. Enable it under Settings > Server in the web UI, or set authMode in /opt/suwayomi_data/server.conf.", + "type": "warning" + } + ] +}