fix lower case incompability (#21)

Co-authored-by: antilopa <antilopa@disroot.org>
Reviewed-on: #21
Reviewed-by: meaz <meaz@no-reply@disroot.org>
Co-authored-by: antilopa <antilopa@no-reply@disroot.org>
Co-committed-by: antilopa <antilopa@no-reply@disroot.org>
This commit is contained in:
antilopa 2022-04-02 18:56:22 +00:00 committed by meaz
parent 6415acfaf5
commit f0f9851a08
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ prosody_http_host: "example.org"
prosody_http_external_url: "https://example.org"
#If using sql storage
prosody_sql_driver: 'sqlite3' # postgresql sqlite3 or mysql
prosody_sql_driver: 'SQLite3' # postgresql sqlite3 or mysql
prosody_sql_databasename: 'prosody'
prosody_sql_username: 'admin'
prosody_sql_passwd: 'changeme'

View file

@ -18,7 +18,7 @@
- 'lua-cyrussasl'
- 'lua-dbi-common'
- 'lua-dbi-mysql'
- 'lua-dbi-{{ prosody_sql_driver }}'
- 'lua-dbi-{{ prosody_sql_driver | lower }}'
- 'lua-event'
- 'lua-ldap'
- 'lua-sec'

View file

@ -131,7 +131,7 @@ storage = "{{ prosody_storage }}"
--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
{% if prosody_sql_driver == 'sqlite3' %}
{% if prosody_sql_driver == 'SQLite3' %}
sql = { driver = "{{ prosody_sql_driver }}", database = "{{ prosody_sql_databasename }}" }
{% else %}
sql = { driver = "{{ prosody_sql_driver }}", database = "{{ prosody_sql_databasename }}", username = "{{ prosody_sql_username }}", password = "{{ prosody_sql_passwd }}", host = "{{ prosody_sql_host }}" }