Skip to content

Commit

Permalink
br: fix file creating error due to directory not exists (#5469)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLe1321 committed Dec 19, 2023
1 parent 14f5a7e commit 34b37bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/tidb-backup-manager/e2e-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ set -e

# The trap command is to make sure the sidecars are terminated when the jobs are finished
cleanup() {
if [ ! -d "/tmp/pod" ]; then
mkdir -p /tmp/pod
fi
touch /tmp/pod/main-terminated
}

Expand Down
3 changes: 3 additions & 0 deletions images/tidb-backup-manager/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ set -e

# The trap command is to make sure the sidecars are terminated when the jobs are finished
cleanup() {
if [ ! -d "/tmp/pod" ]; then
mkdir -p /tmp/pod
fi
touch /tmp/pod/main-terminated
}

Expand Down

0 comments on commit 34b37bb

Please sign in to comment.