We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80b5624 + 3b63aca commit caa689aCopy full SHA for caa689a
1 file changed
scripts/postgres/promote.sh
@@ -10,5 +10,6 @@ done
10
11
source "/scripts/postgres/shell_lib.sh"
12
output_info "pgBackRest: Promote Database because of earlier pgBackRest-Restore."
13
-pg_ctl promote -D ${PGDATA}
+DETECTED_VERSION=$(cat "${PGDATA}/PG_VERSION")
14
+/usr/pgsql-${DETECTED_VERSION}/bin/pg_ctl promote -D ${PGDATA}
15
rm -f "${PGDATA}/promote_after_restore.signal"
0 commit comments