diff options
| -rw-r--r-- | entry_point.sh | 5 |
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 |