blob: 7ef96f7b4d0a79dd6f6b56d9ac86853538663ae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
cfgfile=/etc/mautrix-telegram/config.yaml
regfile=/etc/mautrix-telegram/registration.yaml
[ ! -f "$regfile" ] &&
python -m mautrix_telegram --config "$cfgfile" --registration "$regfile" --generate-registration
cd /etc/mautrix-telegram || exit
alembic -x "config=$cfgfile" upgrade head
exec python -m mautrix_telegram --config "$cfgfile" --registration "$regfile"
|