aboutsummaryrefslogtreecommitdiffstats
path: root/postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2017-05-15 03:16:16 +0000
committerGerrit Code Review <gerrit@onap.org>2017-05-15 03:16:16 +0000
commit7c0f3ce19a502317e15f381b15e06930a1952dbc (patch)
treed09a32691ec014f5571ab6fa2acaf9a949d31348 /postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup
parent7d41ad61e2a3b17505123d1aa7b56fb14d3f143d (diff)
parent844a29c7570aa10775b34fe28dcc022de65fed4c (diff)
Merge "[DCAE-20] fix problem with config change"
Diffstat (limited to 'postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup')
-rw-r--r--postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup6
1 files changed, 5 insertions, 1 deletions
diff --git a/postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup b/postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup
index ff942e6..cb8586d 100644
--- a/postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup
+++ b/postgresql-config/src/stage/opt/app/postgresql-config/etc/lock-and-create-db-backup
@@ -15,7 +15,11 @@
if [ -d /opt/app/postgresql-9.5.2 ]
then PGDIR=${INSTALL_ROOT}/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:${INSTALL_ROOT}/opt/java/jdk/jdk170/bin:${INSTALL_ROOT}/opt/app/cdf/bin:${INSTALL_ROOT}/opt/app/pgaas/bin:$PATH