Skip to content

Commit 0b1c893

Browse files
author
Patrick Morgenstern
committed
- modified search folders for psql and pg_dump commands
1 parent d793c4d commit 0b1c893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgsqlbackup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ if ! [ -d "$bkup_p/pgsql.weekly" ] ; then info "pgsql.weekly folder missing unde
159159
if ! [ -d "$bkup_p/pgsql.monthly" ] ; then info "pgsql.monthly folder missing under the share $bkup_p, it has been created" ; $md_c "$bkup_p/pgsql.monthly" ; if [ $? != 0 ] ; then error "the folder pgsql.monthly could not be created on the share $share" ; fi ; fi
160160

161161
# Check for pg_dump command
162-
for pgsqld_p in /mnt/ext/opt/pgsql /usr/local/pgsql /mnt/HDA_ROOT/pgsql /mnt/HDB_ROOT/pgsql /mnt/HDC_ROOT/pgsql /mnt/HDD_ROOT/pgsql /mnt/HDE_ROOT/pgsql /mnt/HDF_ROOT/pgsql /mnt/HDG_ROOT/pgsql /mnt/HDH_ROOT/pgsql /share/MD0_DATA/.qpkg/Optware; do
162+
for pgsqld_p in /share/CACHEDEV1_DATA/.qpkg/PostgreSQL /share/CACHEDEV1_DATA/.qpkg/Optware; do
163163
[ -f $pgsqld_p/bin/pg_dump ] && pgsqld_c="$pgsqld_p/bin/pg_dump"
164164
done
165165
if [ -z $pgsqld_c ] ; then error "pg_dump command not found."; else info "pg_dump command found" ; fi
166166

167167
# Check for psql command
168-
for pgsqlc_p in /mnt/ext/opt/pgsql /usr/local/pgsql /mnt/HDA_ROOT/pgsql /mnt/HDB_ROOT/pgsql /mnt/HDC_ROOT/pgsql /mnt/HDD_ROOT/pgsql /mnt/HDE_ROOT/pgsql /mnt/HDF_ROOT/pgsql /mnt/HDG_ROOT/pgsql /mnt/HDH_ROOT/pgsql /share/MD0_DATA/.qpkg/Optware; do
168+
for pgsqlc_p in /share/CACHEDEV1_DATA/.qpkg/PostgreSQL /share/CACHEDEV1_DATA/.qpkg/Optware; do
169169
[ -f $pgsqlc_p/bin/psql ] && pgsqlc_c="$pgsqlc_p/bin/psql"
170170
done
171171
if [ -z $pgsqlc_c ] ; then error "psql command not found."; else info "psql command found" ; fi

0 commit comments

Comments
 (0)