Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Jan 16, 2025
1 parent 8eaf059 commit e31492d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions addons/redis/dataprotection/backup_for_rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash
set -e
set -o pipefail

# if the script exits with a non-zero exit code, touch a file to indicate that the backup failed,
Expand Down
2 changes: 2 additions & 0 deletions addons/redis/dataprotection/restore-cluster-users.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash
set -e
set -o pipefail
export PATH="$PATH:$DP_DATASAFED_BIN_PATH"
export DATASAFED_BACKEND_BASE_PATH="$DP_BACKUP_BASE_PATH"
Expand Down
4 changes: 0 additions & 4 deletions addons/redis/templates/backupactionset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ spec:
- bash
- -c
- |
#!/bin/bash
set -e
{{- .Files.Get "dataprotection/restore-cluster-users.sh" | nindent 8 }}
postReady:
- job:
Expand Down Expand Up @@ -177,7 +175,6 @@ spec:
- sh
- -c
- |
set -e
{{- .Files.Get "dataprotection/backup_for_rebuild.sh" | nindent 8 }}
restore:
prepareData:
Expand All @@ -186,5 +183,4 @@ spec:
- sh
- -c
- |
set -e
{{- .Files.Get "dataprotection/restore-cluster-users.sh" | nindent 8 }}

0 comments on commit e31492d

Please sign in to comment.