diff options
Diffstat (limited to 'postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions')
-rw-r--r-- | postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions b/postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions index 3ee8128..9616494 100644 --- a/postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions +++ b/postgresql-config/src/stage/opt/app/postgresql-config/lib/profile.additions @@ -1,6 +1,10 @@ if [ -d /opt/app/postgresql-9.5.2 ] then PGDIR=/opt/app/postgresql-9.5.2 -else PGDIR=/usr/lib/postgresql/9.5 +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 export PATH="$PGDIR/bin:/opt/app/cdf/bin:/opt/app/pgaas/bin:/opt/app/postgresql-prep/bin:$PATH" |