#!/bin/sh # NOTE: this template has been generated using the # matrix-synapse-1.5.1-1.fc31.noarch Fedora package for use with CDIST. generate_extra_settings () { for line in $EXTRA_SETTINGS; do echo "$line" done } generate_database () { if [ "$DATABASE_ENGINE" = "sqlite3" ]; then cat << EOF database: # The database engine name name: "$DATABASE_ENGINE" # Arguments to pass to the engine args: # Path to the database database: "$DATABASE_NAME" EOF else cat << EOF database: # The database engine name name: "$DATABASE_ENGINE" # Arguments to pass to the engine args: database: "$DATABASE_NAME" host: "$DATABASE_HOST" user: "$DATABASE_USER" password: "$DATABASE_PASSWORD" EOF fi } generate_password_providers () { if [ "$ENABLE_LDAP_AUTH" = "true" ]; then cat <