Skip to content

Commit 4c05517

Browse files
authored
Merge pull request #496 from Lex-2008/master
Check for presence of $BACKUP_DIR/data, not $BACKUP_DIR, when restoring DB
2 parents 3e36160 + fa68577 commit 4c05517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/common/cfengine-hub/postinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ migrate_db_using_dump_file() {
572572
return $result
573573
}
574574

575-
if is_upgrade && [ -d "$BACKUP_DIR" ]; then
575+
if is_upgrade && [ -d "$BACKUP_DIR/data" ]; then
576576
# DEBUG variable controls which of migration methods fail:
577577
# 0 - do nothing special (usually pg_upgrade, which is first method, succeeds)
578578
# 1 - fail first method (so we get a chance to run second method, migration via pipe)

0 commit comments

Comments
 (0)