#!/bin/sh if [ ! -f ${I18N_PATH} ]; then cp i18n.yaml ${I18N_PATH} fi alembic -c migrations/alembic.ini upgrade head if [ $# -eq 0 ]; then if [ -z "${USE_WEBHOOK}" ]; then exec python3 -m mybot else exec gunicorn -b 0.0.0.0:8080 "mybot:main()" fi else exec $1 fi