File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ function prereq() {
204
204
error " ZENSERVICE_NAME value not set. Make sure it is either set in the parameters file or as an env variable."
205
205
fi
206
206
fi
207
-
208
- else
209
- error " Neither Backup nor Restore options were specified."
207
+ fi
208
+ if [[ $BACKUP != " true " ]] && [[ $RESTORE != " true " ]] && [[ $SETUP_BACKUP != " true " ]] && [[ $SETUP_RESTORE != " true " ]] ; then
209
+ error " Neither Backup, Restore, or setup options were specified. Please select at least one before rerunning ."
210
210
fi
211
211
212
212
# OADP setup checks
@@ -434,19 +434,19 @@ function restore_im() {
434
434
info " Restoring IM Data..."
435
435
wait_for_im $SERVICES_NS
436
436
if [[ $MCSP_ENABLED == " true" ]]; then
437
- wait_for_deployment $SERVICES_NS " account-iam-ui-account-deployment"
437
+ wait_for_deployment $SERVICES_NS " account-iam-ui-account-deployment"
438
438
fi
439
439
${OC} apply -f ${BASE_DIR} /templates/restore/restore-cs-db.yaml
440
440
wait_for_restore restore-cs-db-data
441
441
success " IM data restored successfully."
442
442
}
443
443
444
444
function wait_for_im() {
445
- info " Sleep for 5 minutes for IM operator to create authentication cr"
446
- sleep 300
445
+ info " Sleep for 7 minutes for IM operator to create authentication cr"
446
+ sleep 420
447
447
local namespace=$1
448
448
local name=" platform-identity-provider"
449
- wait_for_deployment $name $namespace
449
+ wait_for_deployment $namespace $name
450
450
}
451
451
452
452
function restore_zen() {
@@ -856,4 +856,4 @@ function info() {
856
856
msg " [INFO] ${1} "
857
857
}
858
858
859
- main $*
859
+ main $*
You can’t perform that action at this time.
0 commit comments