Skip to content

Commit

Permalink
call setup_database
Browse files Browse the repository at this point in the history
  • Loading branch information
k-burt-uch committed Oct 18, 2024
1 parent b40bfc8 commit 57169ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gen3/bin/kube-setup-gen3-user-data-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 57169ff

Please sign in to comment.