Skip to content

Commit

Permalink
Fixed a typo that caused the "Data_validation" status not to be updat…
Browse files Browse the repository at this point in the history
…ed - if "dummy-dump" check failed
  • Loading branch information
vitabaks committed Nov 29, 2023
1 parent a1985d0 commit 4e41f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgbackrest_auto
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ function dummy_dump(){
info " starting pg_dump -p ${PGPORT} -h 127.0.0.1 -d $db >> /dev/null"
if ! "${PG_BIN_DIR}"/pg_dump -p "${PGPORT}" -h 127.0.0.1 -d "$db" >> /dev/null
then
error "Data validation in the database $db - Failed"
sed -i 's/Data_validation=1/Data_validation=0/g' "${status_file}"
error "Data validation in the database $db - Failed"
else
info "Data validation in the database $db - Successful"
fi
Expand Down

0 comments on commit 4e41f61

Please sign in to comment.