Fix sqlite usage for mautrix-facebook/mautrix-telegram

Regression since 2d99ade72f and 9bf8ce878e, respectively.

When SQLite is to be used, these bridges expect an `sqlite://`
connection string, and not a plain file name (path), like Appservice
Discord and mautrix-whatsapp do.
This commit is contained in:
Slavi Pantaleev 2020-12-14 12:30:10 +02:00
parent 6c77eae969
commit 43d6ff2af8
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ matrix_mautrix_facebook_postgres_connection_string: 'postgresql://{{ matrix_maut
matrix_mautrix_facebook_appservice_database: "{{
{
'sqlite': matrix_mautrix_facebook_sqlite_database_path_in_container,
'sqlite': ('sqlite://' + matrix_mautrix_facebook_sqlite_database_path_in_container),
'postgres': matrix_mautrix_facebook_postgres_connection_string,
}[matrix_mautrix_facebook_database_engine]
}}"

View File

@ -66,7 +66,7 @@ matrix_mautrix_telegram_postgres_connection_string: 'postgresql://{{ matrix_maut
matrix_mautrix_telegram_appservice_database: "{{
{
'sqlite': matrix_mautrix_telegram_sqlite_database_path_in_container,
'sqlite': ('sqlite://' + matrix_mautrix_telegram_sqlite_database_path_in_container),
'postgres': matrix_mautrix_telegram_postgres_connection_string,
}[matrix_mautrix_telegram_database_engine]
}}"