|
@@ -214,7 +214,9 @@ function matrix_configure_homeserver_yaml {
|
214
|
214
|
|
215
|
215
|
if [[ $ONION_ONLY == "no" ]]; then
|
216
|
216
|
sed -i "s|tls_certificate_path:.*|tls_certificate_path: \"/etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem\"|g" "${filepath}"
|
217
|
|
- sed -i "s|tls_private_key_path:.*|tls_private_key_path: \"/etc/ssl/private/${MATRIX_DOMAIN_NAME}.key\"|g" "${filepath}"
|
|
217
|
+ if ! grep -q '#tls_private_key_path' "${filepath}"; then
|
|
218
|
+ sed -i 's|tls_private_key_path|#tls_private_key_path|g' "${filepath}"
|
|
219
|
+ fi
|
218
|
220
|
sed -i "s|tls_dh_params_path:.*|tls_dh_params_path: \"/etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam\"|g" "${filepath}"
|
219
|
221
|
fi
|
220
|
222
|
sed -i 's|8448|8449|g' "${filepath}"
|
|
@@ -524,6 +526,7 @@ function install_home_server {
|
524
|
526
|
groupadd matrix
|
525
|
527
|
useradd -c "Matrix system account" -d $MATRIX_DATA_DIR -m -r -g matrix matrix
|
526
|
528
|
usermod -a -G www-data matrix
|
|
529
|
+ usermod -a -G ssl-cert matrix
|
527
|
530
|
|
528
|
531
|
function_check install_turn
|
529
|
532
|
install_turn
|
|
@@ -623,6 +626,8 @@ function install_matrix {
|
623
|
626
|
exit 73572
|
624
|
627
|
fi
|
625
|
628
|
fi
|
|
629
|
+ chgrp -R ssl-cert /etc/letsencrypt
|
|
630
|
+ chmod -R g=rX /etc/letsencrypt
|
626
|
631
|
fi
|
627
|
632
|
|
628
|
633
|
export DEBIAN_FRONTEND=noninteractive
|