2025-11-02 23:49:54 -08:00
#!/usr/bin/env bash
2025-04-01 10:25:46 +02:00
source <( curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
2026-01-06 13:28:12 +01:00
# Copyright (c) 2021-2026 tteck
2023-08-01 15:03:16 -04:00
# Author: tteck (tteckster)
2024-12-16 12:42:51 +01:00
# 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"
2025-04-10 11:56:52 +02:00
var_tags = " ${ var_tags :- media } "
var_cpu = " ${ var_cpu :- 2 } "
2025-10-03 16:53:55 +02:00
var_ram = " ${ var_ram :- 4096 } "
2025-04-10 11:56:52 +02:00
var_disk = " ${ var_disk :- 8 } "
var_os = " ${ var_os :- debian } "
2025-10-15 22:39:16 +02:00
var_version = " ${ var_version :- 13 } "
2025-04-10 11:56:52 +02:00
var_unprivileged = " ${ var_unprivileged :- 1 } "
2024-12-16 12:42:51 +01:00
header_info " $APP "
2023-08-01 15:03:16 -04:00
variables
color
catch_errors
function update_script( ) {
2024-12-16 12:42:51 +01:00
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
if [ [ -f " $HOME /.overseerr " ] ] && [ [ " $( cat " $HOME /.overseerr " ) " = = "1.34.0" ] ] ; then
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"
2026-02-15 13:51:13 -06:00
sed -i 's|https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/overseerr.sh|https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh|g' /usr/bin/update
2026-02-15 18:59:14 +01:00
msg_ok "Switched update script to Seerr. Running update..."
exec /usr/bin/update
fi
2025-08-29 12:27:24 +02:00
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"
msg_info "Creating backup"
mv /opt/overseerr/config /opt/config_backup
msg_ok "Backup created"
fetch_and_deploy_gh_release "overseerr" "sct/overseerr" "tarball"
rm -rf /opt/overseerr/config
msg_info " Configuring ${ APP } (Patience) "
cd /opt/overseerr
$STD yarn install
$STD yarn build
mv /opt/config_backup /opt/overseerr/config
msg_ok " Configured ${ APP } "
2025-08-29 12:27:24 +02:00
msg_info "Starting Service"
2024-12-16 12:42:51 +01:00
systemctl start overseerr
2025-08-29 12:27:24 +02:00
msg_ok "Started Service"
2025-08-01 07:23:52 +02:00
msg_ok "Updated successfully!"
2024-12-16 12:42:51 +01:00
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"
2024-12-16 12:42:51 +01:00
echo -e " ${ CREATING } ${ GN } ${ APP } setup has been successfully initialized! ${ CL } "
echo -e " ${ INFO } ${ YW } Access it using the following URL: ${ CL } "
2025-08-01 07:23:52 +02:00
echo -e " ${ TAB } ${ GATEWAY } ${ BGN } http:// ${ IP } :5055 ${ CL } "