From ae5a26b56d6796153633d2deaa72aff598795a89 Mon Sep 17 00:00:00 2001 From: Yuqing Wei Date: Tue, 10 Jan 2023 17:02:44 +0800 Subject: [PATCH] update registry start shell --- deploy/start.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/deploy/start.sh b/deploy/start.sh index e8bd1eea5..e46115238 100755 --- a/deploy/start.sh +++ b/deploy/start.sh @@ -33,19 +33,8 @@ nginx # Start API app LISTENING_PORT="8000" -if [ "x$REACT_APP_ENABLE_RBAC" == "x" ]; then - echo "RBAC flag not configured, only launch registry app" - if [ "x$PURVIEW_NAME" == "x" ]; then - echo "Purview flag is not configured, run SQL registry" - cd sql-registry - uvicorn main:app --host 0.0.0.0 --port $LISTENING_PORT - else - echo "Purview flag is configured, run Purview registry" - cd purview-registry - uvicorn main:app --host 0.0.0.0 --port $LISTENING_PORT - fi -else - echo "RBAC flag configured, launch both rbac and reigstry apps" +if [ "$REACT_APP_ENABLE_RBAC" == "true" ]; then + echo "RBAC flag configured and set to true, launch both rbac and reigstry apps" if [ "x$PURVIEW_NAME" == "x" ]; then echo "Purview flag is not configured, run SQL registry" cd sql-registry @@ -65,4 +54,15 @@ else export RBAC_API_AUDIENCE="${REACT_APP_AZURE_CLIENT_ID}" export RBAC_CONNECTION_STR="${CONNECTION_STR}" uvicorn main:app --host 0.0.0.0 --port $LISTENING_PORT +else + echo "RBAC flag not configured or not equal to true, only launch registry app" + if [ "x$PURVIEW_NAME" == "x" ]; then + echo "Purview flag is not configured, run SQL registry" + cd sql-registry + uvicorn main:app --host 0.0.0.0 --port $LISTENING_PORT + else + echo "Purview flag is configured, run Purview registry" + cd purview-registry + uvicorn main:app --host 0.0.0.0 --port $LISTENING_PORT + fi fi