From 57169ff5686e063dbd37438cc6d2fb0f9468ae14 Mon Sep 17 00:00:00 2001 From: Kyle Burton Date: Fri, 18 Oct 2024 15:46:10 -0500 Subject: [PATCH] call setup_database --- gen3/bin/kube-setup-gen3-user-data-library.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gen3/bin/kube-setup-gen3-user-data-library.sh b/gen3/bin/kube-setup-gen3-user-data-library.sh index 431f86eb0..416996f21 100644 --- a/gen3/bin/kube-setup-gen3-user-data-library.sh +++ b/gen3/bin/kube-setup-gen3-user-data-library.sh @@ -6,7 +6,6 @@ source "${GEN3_HOME}/gen3/lib/utils.sh" gen3_load "gen3/gen3setup" -# NOTE: no db for this service yet, but we'll likely need it in the future setup_database() { gen3_log_info "setting up gen3-user-data-library service ..." @@ -49,6 +48,12 @@ EOM gen3 secrets sync 'setup gen3-user-data-library-g3auto secrets' } + +if ! setup_database; then + gen3_log_err "kube-setup-gen3-user-data-library bailing out - database failed setup" + exit 1 +fi + if ! g3k_manifest_lookup '.versions."gen3-user-data-library"' 2> /dev/null; then gen3_log_info "kube-setup-gen3-user-data-library exiting - gen3-user-data-library service not in manifest" exit 0