Skip to content
Snippets Groups Projects
Commit 323855a9 authored by Bob Mottram's avatar Bob Mottram
Browse files

generate identity server config

parent a54ce1af
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment