From 50d539c363c90d9d34ebc206f2307505a3c36db3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Dec 2016 00:01:39 +0000 Subject: [PATCH] Check last line --- src/freedombone-app-matrix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 00dac613..1cbb859c 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -506,7 +506,10 @@ function install_matrix { matrix_nginx - add_user_matrix "${MY_USERNAME}" "${MATRIX_PASSWORD}" + if [[ $(add_user_matrix "${MY_USERNAME}" "${MATRIX_PASSWORD}" | tail -n 1) != "0" ]]; then + echo $'Failed to add matrix admin user'; + exit 879352 + fi APP_INSTALLED=1 }