Skip to content

Commit caa689a

Browse files
authored
Merge pull request #81 from cybertec-postgresql/restoreFix
ensure correct bin is used for pg_ctl
2 parents 80b5624 + 3b63aca commit caa689a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/postgres/promote.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ done
1010

1111
source "/scripts/postgres/shell_lib.sh"
1212
output_info "pgBackRest: Promote Database because of earlier pgBackRest-Restore."
13-
pg_ctl promote -D ${PGDATA}
13+
DETECTED_VERSION=$(cat "${PGDATA}/PG_VERSION")
14+
/usr/pgsql-${DETECTED_VERSION}/bin/pg_ctl promote -D ${PGDATA}
1415
rm -f "${PGDATA}/promote_after_restore.signal"

0 commit comments

Comments
 (0)