Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed problem with package upgrade not trying other migration methods if pg_upgrade fails #1515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packaging/common/cfengine-hub/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,7 @@ do_migration() {
cf_console echo "Migrating database using pg_upgrade utility..."
cf_console echo
_pg_upgrade_log="/tmp/cfengine_pg_upgrade.log"
migrate_db_using_pg_upgrade >"${_pg_upgrade_log}" 2>&1
rc=$?
if [ $rc -eq 0 ] && [ $DEBUG -lt 1 ]; then
if migrate_db_using_pg_upgrade >"${_pg_upgrade_log}" 2>&1 && [ $DEBUG -lt 1 ]; then
# Succeeded
cat "${_pg_upgrade_log}" # might as well see the details of how it worked
rm "${_pg_upgrade_log}" # clean up
Expand Down