aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-09 18:29:21 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-09 18:36:30 +0100
commita5a397d7e878b96960b97c79f7c9f214262c469d (patch)
tree43a63f6d3ec66188a41ebed29c1f07b44d8cca0e
parentCreate database before migrating and running (diff)
Use case-insentivite compare to true to determine metricity skip
This is rather than checking for the presence of the env var at all, since people might set it to false thinking that it won't skip.
-rw-r--r--entry_point.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/entry_point.sh b/entry_point.sh
index e78966d..8375d36 100644
--- a/entry_point.sh
+++ b/entry_point.sh
@@ -1,6 +1,9 @@
set -e
+
python create_metricity_db.py
alembic upgrade head
-if [ -z "$skip_metricity" ]; then
+
+shopt -s nocasematch
+if [ "$skip_metricity" != "true" ]; then
poetry run start
fi