Skip to content

Commit

Permalink
update mongo sed command to work with mutliple entries per line (#1962)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluzarraga authored May 2, 2024
1 parent 30439f8 commit 5c979ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velero/schedule/deploy-br-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function deploy_resources(){
#Deploy IM Mongo resources
if [[ $MONGO == "true" ]]; then
info "Creating IM Mongo Backup/Restore resources in namespace $TARGET_NAMESPACE."
sed -i -E "s/<mongo namespace>/$TARGET_NAMESPACE/" mongodb-backup-deployment.yaml
sed -i -E "s~<mongo namespace>~$TARGET_NAMESPACE~g" mongodb-backup-deployment.yaml
sed -i -E "s/<mongo namespace>/$TARGET_NAMESPACE/" mongodb-backup-pvc.yaml
sed -i -E "s/<storage class>/$STORAGE_CLASS/" mongodb-backup-pvc.yaml
oc apply -f mongodb-backup-deployment.yaml -f mongodb-backup-pvc.yaml -n $TARGET_NAMESPACE || error "Unable to deploy resources for IM Mongo."
Expand Down Expand Up @@ -290,4 +290,4 @@ function info() {
msg "[INFO] ${1}"
}

main $*
main $*

0 comments on commit 5c979ba

Please sign in to comment.