Skip to content

Commit 8e5f5c0

Browse files
committed
create /tmp/postgres
1 parent cdd7e32 commit 8e5f5c0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build/postgres-operator/postgres-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if [[ -f ${recovery_file} ]]; then
66
set +o xtrace
77
echo "The $recovery_file file is detected, node entered an infinite sleep"
88
echo "If you want to exit from the infinite sleep, remove the $recovery_file file"
9+
10+
if [[ ! -d /tmp/postgres ]]; then
11+
mkdir -p /tmp/postgres
12+
fi
13+
914
while [ -f "${recovery_file}" ]; do
1015
sleep 3
1116
done

0 commit comments

Comments
 (0)