Bob Mottram 8 anni fa
parent
commit
50d539c363
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      src/freedombone-app-matrix

+ 4
- 1
src/freedombone-app-matrix Vedi File

@@ -506,7 +506,10 @@ function install_matrix {
506 506
 
507 507
     matrix_nginx
508 508
 
509
-    add_user_matrix "${MY_USERNAME}" "${MATRIX_PASSWORD}"
509
+    if [[ $(add_user_matrix "${MY_USERNAME}" "${MATRIX_PASSWORD}" | tail -n 1) != "0" ]]; then
510
+        echo $'Failed to add matrix admin user';
511
+        exit 879352
512
+    fi
510 513
 
511 514
     APP_INSTALLED=1
512 515
 }