diff options
Diffstat (limited to 'pgaas/src/common/postinst')
-rwxr-xr-x | pgaas/src/common/postinst | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pgaas/src/common/postinst b/pgaas/src/common/postinst index f24e364..dee5b56 100755 --- a/pgaas/src/common/postinst +++ b/pgaas/src/common/postinst @@ -32,10 +32,14 @@ set -x export CDFCFG=${INSTALL_ROOT}/opt/app/cdf/lib/cdf.cfg export PGAASCFG=${INSTALL_ROOT}/opt/app/pgaas/lib/pgaas.cfg -if [ -d /opt/app/postgresql-9.5.2 ] -then PGDIR=/opt/app/postgresql-9.5.2 -else PGDIR=/usr/lib/postgresql/9.5 -fi +if [ -d /opt/app/postgresql-9.5.2 ] +then PGDIR=/opt/app/postgresql-9.5.2 +elif [ -d /usr/lib/postgresql/9.6 ] +then PGDIR=/usr/lib/postgresql/9.6 +elif [ -d /usr/lib/postgresql/9.5 ] +then PGDIR=/usr/lib/postgresql/9.5 +else echo PostgreSQL bin directory not found +fi if [ -d /opt/app/postgresql-config-9.5.2/ ] then CFGDIR=/opt/app/postgresql-config-9.5.2 else CFGDIR=/opt/app/postgresql-config |