Skip to content

Fixed hub install aborting when there is no PostgreSQL backup to preserve - #2399

Open
nickanderson wants to merge 1 commit into
3.27.xfrom
ENT-11934/3.27.x
Open

Fixed hub install aborting when there is no PostgreSQL backup to preserve#2399
nickanderson wants to merge 1 commit into
3.27.xfrom
ENT-11934/3.27.x

Conversation

@nickanderson

@nickanderson nickanderson commented Aug 5, 2026

Copy link
Copy Markdown
Member

Backport of #2398 to 3.27.x.

Ticket: ENT-11934

…erve

init_postgres_dir() took the "preserve the old pg_*.conf" branch on any
upgrade, but preinstall.sh only populates $BACKUP_DIR/data when a PostgreSQL
major version migration is needed and $PREFIX/state/pg/data exists. Upgrading
within a major version, or after removing the data directory as preinstall.sh
suggests to skip the migration, made the glob match nothing and aborted the
whole scriptlet under `set -e`.

Ticket: ENT-11934
Changelog: title
(cherry picked from commit a52a6c0be8d12bcf476be639bc0bdde37c45ac60)
@cf-bottom

Copy link
Copy Markdown

Thanks for submitting a PR! Maybe @craigcomstock can review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants