浏览代码

Set default sydent port

Bob Mottram 8 年前
父节点
当前提交
adeb17033f
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/freedombone-app-matrix

+ 4
- 2
src/freedombone-app-matrix 查看文件

@@ -192,7 +192,7 @@ function matrix_generate_homeserver_file {
192 192
 function matrix_generate_identityserver_file {
193 193
     local filepath="${1}"
194 194
 
195
-    cd /etc/sydent/sydent
195
+    cd /etc/sydent
196 196
     python -m sydent.sydent \
197 197
            --config-path "${filepath}" \
198 198
            --generate-config \
@@ -540,6 +540,8 @@ function install_identity_server {
540 540
     if [ -d $INSTALL_DIR/sydent ]; then
541 541
         rm -rf $INSTALL_DIR/sydent/*
542 542
     fi
543
+    sed -i "s|8090|${MATRIX_ID_PORT}|g" /etc/sydent/sydent/sydent.py
544
+    python setup.py install
543 545
     pip install --upgrade --process-dependency-links . -b $INSTALL_DIR/sydent
544 546
     if [ ! "$?" = "0" ]; then
545 547
         echo $'Failed to install matrix identity server'
@@ -728,7 +730,7 @@ function install_matrix {
728 730
     function_check update_default_domain
729 731
     update_default_domain
730 732
 
731
-    pip install --upgrade --force "pynacl==0.3.0"
733
+    #pip install --upgrade --force "pynacl==0.3.0"
732 734
 
733 735
     function_check matrix_nginx
734 736
     matrix_nginx