|
| 1 | +#!/usr/bin/env bash |
| 2 | +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" |
| 3 | +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" |
| 4 | +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") |
| 5 | +# Copyright (c) 2021-2026 community-scripts ORG |
| 6 | +# Author: hasan-ismail |
| 7 | +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE |
| 8 | +# Source: https://seanime.app/ |
| 9 | + |
| 10 | +APP="Seanime" |
| 11 | +var_tags="${var_tags:-media;anime;manga}" |
| 12 | +var_cpu="${var_cpu:-2}" |
| 13 | +var_ram="${var_ram:-2048}" |
| 14 | +var_disk="${var_disk:-8}" |
| 15 | +var_os="${var_os:-debian}" |
| 16 | +var_version="${var_version:-13}" |
| 17 | +var_arm64="${var_arm64:-yes}" |
| 18 | +var_unprivileged="${var_unprivileged:-1}" |
| 19 | +var_gpu="${var_gpu:-yes}" |
| 20 | + |
| 21 | +header_info "$APP" |
| 22 | +variables |
| 23 | +color |
| 24 | +catch_errors |
| 25 | + |
| 26 | +function update_script() { |
| 27 | + header_info |
| 28 | + check_container_storage |
| 29 | + check_container_resources |
| 30 | + |
| 31 | + if [[ ! -d /opt/seanime ]]; then |
| 32 | + msg_error "No ${APP} Installation Found!" |
| 33 | + exit |
| 34 | + fi |
| 35 | + |
| 36 | + if check_for_gh_release "seanime" "5rahim/seanime"; then |
| 37 | + msg_info "Stopping Service" |
| 38 | + systemctl stop seanime |
| 39 | + msg_ok "Stopped Service" |
| 40 | + |
| 41 | + create_backup /opt/seanime-data/config.toml |
| 42 | + |
| 43 | + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "seanime" "5rahim/seanime" "prebuild" "latest" "/opt/seanime" "seanime-[0-9]*_Linux_$(arch_resolve x86_64 arm64).tar.gz" |
| 44 | + chmod +x /opt/seanime/seanime |
| 45 | + |
| 46 | + restore_backup |
| 47 | + |
| 48 | + msg_info "Starting Service" |
| 49 | + systemctl start seanime |
| 50 | + msg_ok "Started Service" |
| 51 | + msg_ok "Updated successfully!" |
| 52 | + fi |
| 53 | + exit |
| 54 | +} |
| 55 | + |
| 56 | +start |
| 57 | +build_container |
| 58 | +description |
| 59 | + |
| 60 | +msg_ok "Completed Successfully!\n" |
| 61 | +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" |
| 62 | +echo -e "${INFO}${YW} Access it using the following URL:${CL}" |
| 63 | +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:43211${CL}" |
| 64 | +echo -e "${INFO}${YW} Credentials saved in:${CL}" |
| 65 | +echo -e "${TAB}/root/seanime.creds" |
0 commit comments