Remove old cert
This commit is contained in:
parent
70d548fa1c
commit
a39685d1d3
|
@ -604,6 +604,12 @@ function install_matrix {
|
||||||
|
|
||||||
if [[ ${ONION_ONLY} == 'no' ]]; then
|
if [[ ${ONION_ONLY} == 'no' ]]; then
|
||||||
if [ ! -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem ]; then
|
if [ ! -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem ]; then
|
||||||
|
if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt ]; then
|
||||||
|
rm /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt
|
||||||
|
fi
|
||||||
|
if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam ]; then
|
||||||
|
rm /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam
|
||||||
|
fi
|
||||||
echo $'Obtaining certificate for the main domain'
|
echo $'Obtaining certificate for the main domain'
|
||||||
create_site_certificate ${MATRIX_DOMAIN_NAME} 'yes'
|
create_site_certificate ${MATRIX_DOMAIN_NAME} 'yes'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue