浏览代码

Wait for database creation

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

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

659
     systemctl daemon-reload
659
     systemctl daemon-reload
660
     systemctl start matrix
660
     systemctl start matrix
661
 
661
 
662
+    # wait for the database to be created
663
+    sleep 5
664
+
662
     if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
665
     if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
663
         echo $'No matrix home server database was created'
666
         echo $'No matrix home server database was created'
667
+        exit 23782
664
     fi
668
     fi
665
     chmod -R 700 $MATRIX_DATA_DIR/homeserver.db
669
     chmod -R 700 $MATRIX_DATA_DIR/homeserver.db
666
 
670