瀏覽代碼

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,8 +659,12 @@ function install_home_server {
659 659
     systemctl daemon-reload
660 660
     systemctl start matrix
661 661
 
662
+    # wait for the database to be created
663
+    sleep 5
664
+
662 665
     if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
663 666
         echo $'No matrix home server database was created'
667
+        exit 23782
664 668
     fi
665 669
     chmod -R 700 $MATRIX_DATA_DIR/homeserver.db
666 670