浏览代码

Sleep less

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

+ 1
- 5
src/freedombone-app-matrix 查看文件

@@ -173,7 +173,7 @@ function matrix_nginx {
173 173
     systemctl restart nginx
174 174
 
175 175
     # wait for nginx to start otherwise user add fails later
176
-    sleep 8
176
+    sleep 5
177 177
 }
178 178
 
179 179
 function matrix_generate_homeserver_file {
@@ -496,8 +496,6 @@ function install_identity_server {
496 496
     systemctl daemon-reload
497 497
     systemctl start sydent
498 498
 
499
-    sleep 4
500
-
501 499
     if [ ! -f /etc/sydent/sydent.db ]; then
502 500
         echo $'No matrix identity server database was created'
503 501
         exit 7354383
@@ -568,8 +566,6 @@ function install_home_server {
568 566
     systemctl daemon-reload
569 567
     systemctl start matrix
570 568
 
571
-    sleep 4
572
-
573 569
     if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
574 570
         echo $'No matrix home server database was created'
575 571
     fi