Afternoon,
Working through an install of pg 13.2 from repo pointed to by:
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
When working through a set of instructions that suggest I use "postgresql-13-setup initdb" I find that the installation script fails.
There appear to be some problems in the script:
PGVERSION is set to 13 rather than 13.2
PGMAJORVERSION does not peel off the minor version, needs to have sed something like:
sed 's/^\([0-9]*\)\.[0-9]*.*$/\1/'
With these two changes the script ran and appears to work.
If this is a duplicate, I'm sorry to have wasted your time.
Thanks.