|
|
|
|
173
|
systemctl restart nginx
|
173
|
systemctl restart nginx
|
174
|
|
174
|
|
175
|
# wait for nginx to start otherwise user add fails later
|
175
|
# wait for nginx to start otherwise user add fails later
|
176
|
- sleep 5
|
|
|
|
|
176
|
+ sleep 8
|
177
|
}
|
177
|
}
|
178
|
|
178
|
|
179
|
function matrix_generate_homeserver_file {
|
179
|
function matrix_generate_homeserver_file {
|
|
|
|
|
418
|
remove_onion_service matrix ${MATRIX_PORT}
|
418
|
remove_onion_service matrix ${MATRIX_PORT}
|
419
|
|
419
|
|
420
|
sed -i "/location \/matrix {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
420
|
sed -i "/location \/matrix {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
|
|
421
|
+ sed -i "/location \/matrix-id {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
|
|
422
|
+ sed -i "/location \/turn {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
421
|
systemctl restart nginx
|
423
|
systemctl restart nginx
|
422
|
|
424
|
|
423
|
remove_completion_param install_matrix
|
425
|
remove_completion_param install_matrix
|