Files
ProxmoxVE/ct/overseerr.sh
T

94 lines
2.9 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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 tteck
2023-08-01 15:03:16 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://overseerr.dev/
2023-08-01 15:03:16 -04:00
APP="Overseerr"
var_tags="${var_tags:-media}"
var_cpu="${var_cpu:-2}"
2025-10-03 16:53:55 +02:00
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
2023-08-01 15:03:16 -04:00
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/overseerr ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
2026-02-15 18:59:14 +01:00
2026-02-26 20:20:41 +01:00
if [[ -f "$HOME/.overseerr" ]] && [[ "$(printf '%s\n' "1.35.0" "$(cat "$HOME/.overseerr")" | sort -V | head -n1)" == "1.35.0" ]]; then
2026-02-15 18:59:14 +01:00
echo
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Overseerr v1.34.0 detected."
echo
echo "Seerr is the new unified Jellyseerr and Overseerr."
echo "More info: https://docs.seerr.dev/blog/seerr-release"
echo
read -rp "Do you want to migrate to Seerr now? (y/N): " MIGRATE
echo
if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then
msg_info "Migration cancelled. Exiting."
exit 0
fi
msg_info "Switching update script to Seerr"
TMP_UPDATE=$(mktemp)
cat <<'EOF' >"$TMP_UPDATE"
2026-02-15 23:09:16 +01:00
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)"
EOF
mv "$TMP_UPDATE" /usr/bin/update
2026-02-15 23:09:16 +01:00
chmod +x /usr/bin/update
msg_ok "Switched update script to Seerr"
msg_warn "Please type 'update' again to complete the migration"
exit 0
2026-02-15 18:59:14 +01:00
fi
if check_for_gh_release "overseerr" "sct/overseerr"; then
msg_info "Stopping Service"
2025-08-01 07:23:52 +02:00
systemctl stop overseerr
msg_ok "Service stopped"
create_backup /opt/overseerr/config
2025-08-01 07:23:52 +02:00
fetch_and_deploy_gh_release "overseerr" "sct/overseerr" "tarball"
restore_backup
2025-08-01 07:23:52 +02:00
msg_info "Configuring ${APP} (Patience)"
cd /opt/overseerr
$STD yarn install
$STD yarn build
msg_ok "Configured ${APP}"
msg_info "Starting Service"
systemctl start overseerr
msg_ok "Started Service"
2025-08-01 07:23:52 +02:00
msg_ok "Updated successfully!"
fi
2023-08-03 11:59:39 -04:00
exit
2023-08-01 15:03:16 -04:00
}
start
build_container
description
2026-01-06 22:57:40 +01:00
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}:5055${CL}"