Migrate update script to Seerr; prompt rerun (#11965)

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.
This commit is contained in:
CanbiZ (MickLesk)
2026-02-16 08:29:04 +01:00
committed by GitHub
parent 652920ee49
commit 39354352ff
2 changed files with 12 additions and 8 deletions

View File

@@ -45,12 +45,14 @@ function update_script() {
fi fi
msg_info "Switching update script to Seerr" msg_info "Switching update script to Seerr"
cat <<EOF >/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)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)"
EOF EOF
chmod +x /usr/bin/update chmod +x /usr/bin/update
msg_ok "Switched update script to Seerr. Running update..." msg_ok "Switched update script to Seerr"
exec /usr/bin/update msg_warn "Please type 'update' again to complete the migration"
exit
fi fi
msg_info "Updating Jellyseerr" msg_info "Updating Jellyseerr"

View File

@@ -44,12 +44,14 @@ function update_script() {
fi fi
msg_info "Switching update script to Seerr" msg_info "Switching update script to Seerr"
cat <<EOF >/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)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)"
EOF EOF
chmod +x /usr/bin/update chmod +x /usr/bin/update
msg_ok "Switched update script to Seerr. Running update..." msg_ok "Switched update script to Seerr"
exec /usr/bin/update msg_warn "Please type 'update' again to complete the migration"
exit 0
fi fi
if check_for_gh_release "overseerr" "sct/overseerr"; then if check_for_gh_release "overseerr" "sct/overseerr"; then