gitlab-ctl pg-upgrade fails to use postgresql['data_dir']
on CentOS Linux release 7.2.1511 after having upgraded to gitlab-ce-8.15.2-ce.0.el7.x86_64 the upgrade to Postgresql 9.6 fails when running" gitlab-ctl pg-upgrade
gitlab-ctl pg-upgrade Checking for an omnibus managed postgresql: OK Checking version of running PostgreSQL: OK Checking for a newer version of PostgreSQL to install: OK Upgrading PostgreSQL to 9.6.1 Checking if existing PostgreSQL instances needs to be upgraded: OK Checking if the PostgreSQL directory has been symlinked elsewhere: NOT OK /var/opt/gitlab/postgresql/data is a symlink to another directory. Will not proceed
In /etc/gitlab/gitlab.rb I have specified: postgresql['data_dir'] = "/gitlab-install/servername/var/opt/gitlab/postgresql/data"
pg-upgrade is ignoring the postgresql data_dir specification.
A symlink in the default data_dir location to the new location, but it shouldn't be used by the omnibus installation or checked when data_dir is overridden.