diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2017-05-15 03:16:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-05-15 03:16:16 +0000 |
commit | 7c0f3ce19a502317e15f381b15e06930a1952dbc (patch) | |
tree | d09a32691ec014f5571ab6fa2acaf9a949d31348 /pgaas/src/stage/opt/app/pgaas/bin/isrw | |
parent | 7d41ad61e2a3b17505123d1aa7b56fb14d3f143d (diff) | |
parent | 844a29c7570aa10775b34fe28dcc022de65fed4c (diff) |
Merge "[DCAE-20] fix problem with config change"
Diffstat (limited to 'pgaas/src/stage/opt/app/pgaas/bin/isrw')
-rwxr-xr-x | pgaas/src/stage/opt/app/pgaas/bin/isrw | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pgaas/src/stage/opt/app/pgaas/bin/isrw b/pgaas/src/stage/opt/app/pgaas/bin/isrw index 817030d..d9e925e 100755 --- a/pgaas/src/stage/opt/app/pgaas/bin/isrw +++ b/pgaas/src/stage/opt/app/pgaas/bin/isrw @@ -13,14 +13,16 @@ # permissions and limitations under the License. -if [ -d /usr/lib/postgresql/9.5/bin ] -then PATH=$PATH:/usr/lib/postgresql/9.5/bin -elif [ -d /opt/app/postgresql-9.5.2/bin ] -then PATH=$PATH:/opt/app/postgresql-9.5.2/bin -else echo "$0: Cannot find PostgreSQL bin" 1>&2; exit 1 +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 1>&2; exit 1 fi -export PATH=$PATH:/opt/java/jdk/jdk170/bin:/opt/app/cdf/bin:/opt/app/pgaas/bin:$PATH +export PATH=$PATH:$PGDIR/bin:/opt/java/jdk/jdk170/bin:/opt/app/cdf/bin:/opt/app/pgaas/bin:$PATH if [ -f /var/run/postgresql/inmaintenance ] then |