Skip to content

Commit cccc5ee

Browse files
committed
fix(postgres): recovery mode not run
1 parent 0714c87 commit cccc5ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if [[ $(envdir "$WALG_ENVDIR" wal-g backup-list | wc -l) -gt "1" ]]; then
1212
}
1313
rm -rf "$PGDATA"
1414
envdir "$WALG_ENVDIR" wal-g backup-fetch "$PGDATA" LATEST
15+
touch "$PGDATA/recovery.signal"
1516
cat << EOF > "$PGDATA/postgresql.conf"
1617
# These settings are initialized by initdb, but they can be changed.
1718
log_timezone = 'UTC'

0 commit comments

Comments
 (0)