fix alembic upgrade & models update before run bot (#81)

This commit is contained in:
Dmitry Afanasyev 2024-01-08 21:52:46 +03:00 committed by GitHub
parent 28895f3510
commit 28d01f551b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,8 @@
set -e set -e
if [ -f shared/${DB_NAME:-chatgpt.db} ] alembic upgrade "head" && \
then python3 core/bot/managment/update_gpt_models.py
python3 core/bot/managment/update_gpt_models.py
fi
echo "starting the bot" echo "starting the bot"