Set default sydent port

This commit is contained in:
Bob Mottram 2017-02-08 14:46:52 +00:00
parent d9a1c0d5e6
commit adeb17033f
1 changed files with 4 additions and 2 deletions

View File

@ -192,7 +192,7 @@ function matrix_generate_homeserver_file {
function matrix_generate_identityserver_file { function matrix_generate_identityserver_file {
local filepath="${1}" local filepath="${1}"
cd /etc/sydent/sydent cd /etc/sydent
python -m sydent.sydent \ python -m sydent.sydent \
--config-path "${filepath}" \ --config-path "${filepath}" \
--generate-config \ --generate-config \
@ -540,6 +540,8 @@ function install_identity_server {
if [ -d $INSTALL_DIR/sydent ]; then if [ -d $INSTALL_DIR/sydent ]; then
rm -rf $INSTALL_DIR/sydent/* rm -rf $INSTALL_DIR/sydent/*
fi fi
sed -i "s|8090|${MATRIX_ID_PORT}|g" /etc/sydent/sydent/sydent.py
python setup.py install
pip install --upgrade --process-dependency-links . -b $INSTALL_DIR/sydent pip install --upgrade --process-dependency-links . -b $INSTALL_DIR/sydent
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $'Failed to install matrix identity server' echo $'Failed to install matrix identity server'
@ -728,7 +730,7 @@ function install_matrix {
function_check update_default_domain function_check update_default_domain
update_default_domain update_default_domain
pip install --upgrade --force "pynacl==0.3.0" #pip install --upgrade --force "pynacl==0.3.0"
function_check matrix_nginx function_check matrix_nginx
matrix_nginx matrix_nginx