mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
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:
parent
9b6b21f3b7
commit
366ab642fe
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue