Skip to content
Merged
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: 3 additions & 1 deletion scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

LOG_DIR="$PGDATA"/log
LOG_FILE_PATTERN="postgresql-*.log"
HOST=$(hostname)
# bash sets HOSTNAME itself; the hostname binary is absent from the RHEL/CentOS
# Stream based images, and without it every pod would take the replica path below.
HOST="$HOSTNAME"
mkdir -p $PGDATA
chmod 0700 "$PGDATA"

Expand Down
Loading