From 6ecda5edb05538deedab0ccf4f18540a23153855 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Feb 2026 08:13:40 +0100 Subject: [PATCH] Migrate update script to Seerr; prompt rerun Update ct/jellyseerr.sh and ct/overseerr.sh to switch the container update handler to the Seerr script. The here-doc now uses a single-quoted EOF to avoid shell expansion and includes an explicit shebang for the generated /usr/bin/update. Instead of auto-executing the new update script, the code now informs the user to run 'update' again and exits (overseerr exits with 0). Also includes minor whitespace cleanup (removed trailing spaces on cd lines). This prevents unexpected immediate execution and ensures the generated script runs with the intended shell. --- ct/jellyseerr.sh | 12 +++++++----- ct/overseerr.sh | 8 +++++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index 695f16227..799aa3593 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -45,16 +45,18 @@ function update_script() { fi msg_info "Switching update script to Seerr" - cat </usr/bin/update + cat <<'EOF' >/usr/bin/update +#!/usr/bin/env bash bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)" EOF chmod +x /usr/bin/update - msg_ok "Switched update script to Seerr. Running update..." - exec /usr/bin/update + msg_ok "Switched update script to Seerr" + msg_warn "Please type 'update' again to complete the migration" + exit fi msg_info "Updating Jellyseerr" - cd /opt/jellyseerr + cd /opt/jellyseerr systemctl stop jellyseerr output=$(git pull --no-rebase) pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/jellyseerr/package.json) @@ -65,7 +67,7 @@ EOF fi rm -rf dist .next node_modules export CYPRESS_INSTALL_BINARY=0 - cd /opt/jellyseerr + cd /opt/jellyseerr $STD pnpm install --frozen-lockfile export NODE_OPTIONS="--max-old-space-size=3072" $STD pnpm build diff --git a/ct/overseerr.sh b/ct/overseerr.sh index 08357ff6f..cffe85f87 100644 --- a/ct/overseerr.sh +++ b/ct/overseerr.sh @@ -44,12 +44,14 @@ function update_script() { fi msg_info "Switching update script to Seerr" - cat </usr/bin/update + cat <<'EOF' >/usr/bin/update +#!/usr/bin/env bash bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)" EOF chmod +x /usr/bin/update - msg_ok "Switched update script to Seerr. Running update..." - exec /usr/bin/update + msg_ok "Switched update script to Seerr" + msg_warn "Please type 'update' again to complete the migration" + exit 0 fi if check_for_gh_release "overseerr" "sct/overseerr"; then