generate identity server config
This commit is contained in:
parent
a54ce1af0c
commit
323855a95b
|
@ -187,6 +187,17 @@ function matrix_generate_homeserver_file {
|
|||
--server-name ${DEFAULT_DOMAIN_NAME}
|
||||
}
|
||||
|
||||
function matrix_generate_identityserver_file {
|
||||
local filepath="${1}"
|
||||
|
||||
cd /etc/matrix
|
||||
python -m sydent.sydent \
|
||||
--config-path "${filepath}" \
|
||||
--generate-config \
|
||||
--report-stats ${REPORT_STATS} \
|
||||
--server-name ${DEFAULT_DOMAIN_NAME}
|
||||
}
|
||||
|
||||
function matrix_configure_homeserver_yaml {
|
||||
local turnkey="${1}"
|
||||
local filepath="${2}"
|
||||
|
@ -448,6 +459,9 @@ function install_identity_server {
|
|||
exit 798362
|
||||
fi
|
||||
|
||||
function_check matrix_generate_identityserver_file
|
||||
matrix_generate_identityserver_file /etc/sydent/sydent.conf
|
||||
|
||||
if [ ! -f /etc/sydent/sydent.conf ]; then
|
||||
echo $'Matrix identity server configuration not generated'
|
||||
exit 72528
|
||||
|
|
Loading…
Reference in New Issue