From 366ab642fefe9096ecf1c838ff78f75f5bacce2b Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 19 Dec 2024 10:52:31 -0600 Subject: [PATCH] MSP Dashboard: update entrypoint script. (#24911) Changes: - Updated the MSP dashboard's entrypoint.sh script to not rebuild the database every time it starts with the --build flag. --- ee/bulk-operations-dashboard/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ee/bulk-operations-dashboard/entrypoint.sh b/ee/bulk-operations-dashboard/entrypoint.sh index bbec7ef5da..62c3385610 100644 --- a/ee/bulk-operations-dashboard/entrypoint.sh +++ b/ee/bulk-operations-dashboard/entrypoint.sh @@ -12,10 +12,12 @@ elif [ -z "$sails_custom__fleetApiToken" ]; then fi # Check if the vulnerability dashboard has been initialized before -if [ ! -f "/usr/src/app/.initialized" ]; then +if [ ! -f "/usr/src/app/initialized" ]; then # if it hasn't, lift the app with in console mode with the --drop flag to create our databsae tables. echo '.exit' | node ./node_modules/sails/bin/sails console --drop + touch /usr/src/app/initialized + fi # Start the dashboard