Check last line

This commit is contained in:
Bob Mottram 2016-12-31 00:01:39 +00:00
parent a537f3f174
commit 50d539c363
1 changed files with 4 additions and 1 deletions

View File

@ -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
}