aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-14 12:17:21 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-14 12:17:21 +0100
commit245281e8f4eefe41ce684db972315c1ab3728f94 (patch)
tree4ea704dbfa044d10e1f645bdb06c500a24d2e6eb
parentExplicitly define the metricity database name in docker-compose (diff)
Detect and copy config files passed by bot compose
-rw-r--r--entry_point.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/entry_point.sh b/entry_point.sh
index c1a217a..56072d0 100644
--- a/entry_point.sh
+++ b/entry_point.sh
@@ -3,6 +3,11 @@ set -e
python create_metricity_db.py
alembic upgrade head
+if [ -e /tmp/bot/metricity-config.toml ]; then
+ echo "Detected metricity running in bot context, copying config."
+ cp --force /tmp/bot/metricity-config.toml ./config.toml
+fi
+
shopt -s nocasematch
if [ "${USE_METRICITY:-true}" = "true" ]; then
poetry run start