adding another race condition prevention
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8dcb1f35e8
commit
8761f3dc6e
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export LOOMIO_ENTRYPOINT_VERSION=v5
|
||||
export LOOMIO_ENTRYPOINT_VERSION=v6
|
||||
|
||||
# cannot be integrated into entrypoint.sh as it requires the operator to create a user first
|
||||
function make_last_user_admin()
|
||||
|
@ -31,7 +31,8 @@ if [ -n "$1" ]; then
|
||||
echo "Running '$1'"
|
||||
$1
|
||||
else
|
||||
if [ ! -f /loomio/storage/migrations_ran ] && [ "${TASK:-}" = "worker" ]; then
|
||||
if [ "${TASK:-}" = "worker" ]; then
|
||||
if [ ! -f /loomio/storage/migrations_ran ]; then
|
||||
echo "first deploy, running DB setup..."
|
||||
rake db:setup
|
||||
touch /loomio/storage/migrations_ran
|
||||
@ -40,6 +41,7 @@ else
|
||||
echo "running DB migrations..."
|
||||
rake db:migrate
|
||||
echo "DB migrations finished"
|
||||
fi
|
||||
|
||||
echo "starting loomio!"
|
||||
/loomio/docker_start.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user