This commit is contained in:
parent
20fc49d3d6
commit
0ff4f2cf40
|
@ -17,7 +17,7 @@ WORKDIR /mautrixtelegram
|
|||
|
||||
RUN virtualenv -p /usr/bin/python3 . \
|
||||
&& source ./bin/activate \
|
||||
&& pip install --upgrade https://github.com/tulir/mautrix-telegram/tarball/master#egg=mautrix_telegram[all]
|
||||
&& pip install --upgrade https://github.com/jcgruenhage/mautrix-telegram/tarball/master#egg=mautrix_telegram[all]
|
||||
|
||||
COPY root /
|
||||
|
||||
|
|
|
@ -12,13 +12,13 @@ source ./bin/activate
|
|||
|
||||
# Replace database path in alembic.ini
|
||||
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" alembic.ini
|
||||
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" /data/config.yaml
|
||||
|
||||
# Check that database is in the right state
|
||||
alembic upgrade head
|
||||
|
||||
if [[ ! -f /data/config.yaml ]]; then
|
||||
cp example-config.yaml /data/config.yaml
|
||||
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" /data/config.yaml
|
||||
echo "Didn't find a config file."
|
||||
echo "Copied default config file to /data/config.yaml"
|
||||
echo "Modify that config file to your liking."
|
||||
|
|
Loading…
Reference in a new issue