From 9622e848e46d0d0d690a893cf0e51c351be2554f Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sat, 31 Dec 2016 13:35:03 +0000
Subject: [PATCH] Longer sleep

---
 src/freedombone-app-matrix | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix
index 98be0205b..7c06c2811 100755
--- a/src/freedombone-app-matrix
+++ b/src/freedombone-app-matrix
@@ -173,7 +173,7 @@ function matrix_nginx {
     systemctl restart nginx
 
     # wait for nginx to start otherwise user add fails later
-    sleep 5
+    sleep 10
 }
 
 function matrix_generate_homeserver_file {
@@ -285,7 +285,6 @@ function add_user_matrix {
 
     ${PROJECT_NAME}-pass -u $new_username -a matrix -p "$new_user_password"
 
-    matrix_nginx
     retval=$(register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a)
     echo "0"
 }
-- 
GitLab