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.
This commit is contained in:
Eric 2024-12-19 10:52:31 -06:00 committed by GitHub
parent 9b6b21f3b7
commit 366ab642fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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