Matrix domain certificate
This commit is contained in:
parent
b94c1c9cae
commit
03c1fee44a
|
@ -736,10 +736,10 @@ function update_default_domain {
|
|||
fi
|
||||
|
||||
if [ -d /var/lib/matrix ]; then
|
||||
if [ -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
||||
cp /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem /var/lib/matrix/${DEFAULT_DOMAIN_NAME}.tls.crt
|
||||
cp /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.dhparam /var/lib/matrix/${DEFAULT_DOMAIN_NAME}.tls.dh
|
||||
cp /etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key /var/lib/matrix/${DEFAULT_DOMAIN_NAME}.tls.key
|
||||
if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem ]; then
|
||||
cp /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem /var/lib/matrix/${MATRIX_DOMAIN_NAME}.tls.crt
|
||||
cp /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam /var/lib/matrix/${MATRIX_DOMAIN_NAME}.tls.dh
|
||||
cp /etc/ssl/private/${MATRIX_DOMAIN_NAME}.key /var/lib/matrix/${MATRIX_DOMAIN_NAME}.tls.key
|
||||
chown -R matrix:matrix /var/lib/matrix
|
||||
chmod -R 700 /var/lib/matrix/*.pem
|
||||
chmod -R 700 /var/lib/matrix/*.key
|
||||
|
|
Loading…
Reference in New Issue