Skip to content
Snippets Groups Projects
Commit 54e95255 authored by Bob Mottram's avatar Bob Mottram
Browse files

Try reverse logic

parent 4ac5622b
No related branches found
No related tags found
No related merge requests found
......@@ -449,13 +449,12 @@ function add_user_matrix {
"${PROJECT_NAME}-pass" -u "$new_username" -a matrix -p "$new_user_password"
echo "register_new_matrix_user -c \"${MATRIX_DATA_DIR}/homeserver.yaml\" -u \"${new_username}\" -p \"**********\" $add_user_matrix_admin http://localhost:${MATRIX_PORT}"
if echo 'y' | register_new_matrix_user -c "${MATRIX_DATA_DIR}/homeserver.yaml" -u "${new_username}" -p "${new_user_password}" $add_user_matrix_admin http://localhost:${MATRIX_PORT}; then
echo "0"
if ! register_new_matrix_user -c "${MATRIX_DATA_DIR}/homeserver.yaml" -u "${new_username}" -p "${new_user_password}" $add_user_matrix_admin http://localhost:${MATRIX_PORT}; then
echo "1"
return
fi
echo "1"
echo "0"
}
function install_interactive_matrix {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment