mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Related to: #20296 Changes: - Added `ee/bulk-operations-dashboard`, a Sails.js app that lets users manage configuration profiles and scripts across multiple teams on a Fleet instance. - Added a Github workflow to deploy the app to Heroku - Added a Github workflow to test changes to the bulk operations dashboard.
22 lines
975 B
Bash
22 lines
975 B
Bash
#!/bin/bash
|
|
|
|
if [ -z "$sails_custom__fleetBaseUrl" ] && [ -z "$sails_custom__fleetApiToken" ]; then
|
|
echo 'ERROR: Missing environment variables. Please set "sails_custom__fleetApiToken" and "sails_custom__fleetBaseUrl" and and try starting this container again'
|
|
exit 1
|
|
elif [ -z "$sails_custom__fleetBaseUrl" ]; then
|
|
echo 'ERROR: Missing environment variables. Please set "sails_custom__fleetBaseUrl" and try starting this container again'
|
|
exit 1
|
|
elif [ -z "$sails_custom__fleetApiToken" ]; then
|
|
echo 'ERROR: Missing environment variables. Please set "sails_custom__fleetApiToken" and and try starting this container again'
|
|
exit 1
|
|
fi
|
|
|
|
# Check if the vulnerability dashboard has been initialized before
|
|
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
|
|
|
|
fi
|
|
|
|
# Start the dashboard
|
|
exec node app.js
|