Compare commits

..

3 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
c14743a25f fix(postgresql): fall back to distro packages instead of bookworm-pgdg on Trixie (#12524)
When the PGDG repo is unreachable for trixie/forky/sid, the previous
code fell back to bookworm-pgdg. This causes unresolvable dependency
errors because bookworm-pgdg packages depend on libldap-2.5-0 and
libicu72, which don't exist on Trixie (has libldap-2.6-0 and libicu76).

Instead of falling back to an incompatible suite, recursively call
setup_postgresql with USE_PGDG_REPO=false to use Debian's native
PostgreSQL packages (Trixie ships PG 17 natively).
2026-03-04 08:07:24 +01:00
community-scripts-pr-app[bot]
41611d2682 Update CHANGELOG.md (#12541)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-04 07:00:19 +00:00
CanbiZ (MickLesk)
cf8043a22e fix(migration): atomic /usr/bin/update replacement to prevent syntax errors (#12540) 2026-03-04 07:59:51 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -416,6 +416,7 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes
- addon migrations: /usr/bin/update replacement to prevent syntax error [@MickLesk](https://github.com/MickLesk) ([#12540](https://github.com/community-scripts/ProxmoxVE/pull/12540))
- fix(immich): correct LibRaw clone URL to official upstream [@DenislavDenev](https://github.com/DenislavDenev) ([#12526](https://github.com/community-scripts/ProxmoxVE/pull/12526))
### 💾 Core

View File

@@ -6500,14 +6500,13 @@ function setup_postgresql() {
local SUITE
case "$DISTRO_CODENAME" in
trixie | forky | sid)
if verify_repo_available "https://apt.postgresql.org/pub/repos/apt" "trixie-pgdg"; then
SUITE="trixie-pgdg"
else
SUITE="bookworm-pgdg"
msg_warn "PGDG repo not available for ${DISTRO_CODENAME}, falling back to distro packages"
USE_PGDG_REPO=false setup_postgresql
return $?
fi
;;
*)
SUITE=$(get_fallback_suite "$DISTRO_ID" "$DISTRO_CODENAME" "https://apt.postgresql.org/pub/repos/apt")