Bug 1378787 - Broken upgrade 'postgresql-setup --upgrade --upgrade-from=postgresql92-postgresql'
Summary: Broken upgrade 'postgresql-setup --upgrade --upgrade-from=postgresql92-postgr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-postgresql95
Version: rh-postgresql95
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.0
Assignee: Pavel Raiskup
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1452734
TreeView+ depends on / blocked
 
Reported: 2016-09-23 09:27 UTC by Pavel Raiskup
Modified: 2018-02-14 17:00 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1452734 (view as bug list)
Environment:
Last Closed: 2018-02-14 17:00:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Pavel Raiskup 2016-09-23 09:27:12 UTC
There is a C&P typo in spec file causing that '9.4' config overwrites correctly
written '9.2' config file.  Solution should be:

diff --git a/postgresql.spec b/postgresql.spec
index 8c03e81..a6dd4e2 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -630,7 +630,7 @@ redhat_sockets_hack yes
 pghost_override        /tmp
 EOF
 
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql92.conf <<EOF
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/rh-postgresql94.conf <<EOF
 id             rh-postgresql94-postgresql
 major          9.4
 data_default   /var/opt/rh/rh-postgresql94/lib/pgsql/data

Comment 1 Pavel Raiskup 2016-09-23 09:27:50 UTC
Reported by tkasparek, thanks.


Note You need to log in before you can comment on or make changes to this bug.