Fix dependencies and docker image

This commit is contained in:
Tulir Asokan
2021-12-21 01:55:42 +02:00
parent 055034ed67
commit 3447762d91
2 changed files with 2 additions and 7 deletions

View File

@@ -10,10 +10,6 @@ cd /opt/mautrix-telegram
# Replace database path in config.
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" /data/config.yaml
if [ -f /data/mx-state.json ]; then
ln -s /data/mx-state.json
fi
if [ ! -f /data/config.yaml ]; then
cp example-config.yaml /data/config.yaml
echo "Didn't find a config file."
@@ -30,8 +26,5 @@ if [ ! -f /data/registration.yaml ]; then
exit
fi
# Check that database is in the right state
alembic -x config=/data/config.yaml upgrade head
fixperms
exec su-exec $UID:$GID python3 -m mautrix_telegram -c /data/config.yaml

View File

@@ -9,3 +9,5 @@ mautrix==0.14.0rc1
tulir-telethon==1.25.0a1
asyncpg>=0.20,<0.26
aiosqlite>=0.17,<0.18
mako>=1,<2
setuptools