|
|
|
|
252
|
if [ -f /var/lib/matrix/.synapse/bin/activate ]; then
|
252
|
if [ -f /var/lib/matrix/.synapse/bin/activate ]; then
|
253
|
source /var/lib/matrix/.synapse/bin/activate
|
253
|
source /var/lib/matrix/.synapse/bin/activate
|
254
|
fi
|
254
|
fi
|
255
|
- register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml https://${DEFAULT_DOMAIN_NAME}/matrix -u "${new_username}" -p "${new_user_password}" -a
|
|
|
256
|
- if [ ! "$?" = "0" ]; then
|
|
|
257
|
- echo '1'
|
|
|
258
|
- else
|
|
|
259
|
- echo "0"
|
|
|
260
|
- fi
|
|
|
|
|
255
|
+ register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a
|
|
|
256
|
+ echo "0"
|
261
|
}
|
257
|
}
|
262
|
|
258
|
|
263
|
function install_interactive_matrix {
|
259
|
function install_interactive_matrix {
|