diff options
Diffstat (limited to 'postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup')
-rw-r--r-- | postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup b/postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup index 625ce57..d6e856b 100644 --- a/postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup +++ b/postgresql-config/src/stage/opt/app/postgresql-config/etc/create-db-backup @@ -15,7 +15,11 @@ 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 $PGDIR/bin/psql <<-EOF |