Remove unused files
This commit is contained in:
parent
4660718b9c
commit
cdf9fb1cf2
|
@ -40,10 +40,11 @@ MATRIX_PORT=8448
|
|||
MATRIX_REPO="https://github.com/matrix-org/synapse"
|
||||
MATRIX_COMMIT='f5a4001bb116c468cc5e8e0ae04a1c570e2cb171'
|
||||
REPORT_STATS="no"
|
||||
MATRIX_SECRET=
|
||||
|
||||
matrix_variables=(ONION_ONLY
|
||||
MY_USERNAME
|
||||
MATRIX_PASSWORD
|
||||
MATRIX_SECRET
|
||||
DEFAULT_DOMAIN_NAME)
|
||||
|
||||
function matrix_generate_synapse_file {
|
||||
|
@ -122,8 +123,8 @@ function add_user_matrix {
|
|||
|
||||
${PROJECT_NAME}-pass -u $new_username -a matrix -p "$new_user_password"
|
||||
|
||||
cd /etc/matrix/scripts
|
||||
register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml https://localhost:${MATRIX_PORT} -u "${new_username}" -p "${new_user_password}" -a
|
||||
read_config_param 'MATRIX_SECRET'
|
||||
register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml https://localhost:${MATRIX_PORT} -u "${new_username}" -p "${new_user_password}" -k "${MATRIX_SECRET}" -a
|
||||
if [ ! "$?" = "0" ]; then
|
||||
echo '1'
|
||||
else
|
||||
|
@ -324,6 +325,7 @@ function install_matrix {
|
|||
|
||||
function_check install_turn
|
||||
install_turn
|
||||
MATRIX_SECRET="${turnkey}"
|
||||
|
||||
function_check matrix_generate
|
||||
matrix_generate
|
||||
|
@ -359,6 +361,13 @@ function install_matrix {
|
|||
fi
|
||||
fi
|
||||
|
||||
rm -rf ${MATRIX_DATA_DIR}/Maildir
|
||||
rm -rf ${MATRIX_DATA_DIR}/.mutt
|
||||
rm -f ${MATRIX_DATA_DIR}/.muttrc
|
||||
rm -f ${MATRIX_DATA_DIR}/.mutt-alias
|
||||
rm -f ${MATRIX_DATA_DIR}/.procmailrc
|
||||
rm -f ${MATRIX_DATA_DIR}/.emacs-mutt
|
||||
|
||||
if [[ $(add_user_matrix "${MY_USERNAME}" "${MATRIX_PASSWORD}") != "0" ]]; then
|
||||
echo $'Failed to add matrix admin user';
|
||||
exit 879352
|
||||
|
|
Loading…
Reference in New Issue