Remove old cert

This commit is contained in:
Bob Mottram 2017-05-05 19:28:54 +01:00
parent 70d548fa1c
commit a39685d1d3
1 changed files with 6 additions and 0 deletions

View File

@ -604,6 +604,12 @@ function install_matrix {
if [[ ${ONION_ONLY} == 'no' ]]; 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'
create_site_certificate ${MATRIX_DOMAIN_NAME} 'yes'
fi