Skip to content
Snippets Groups Projects
Commit a39685d1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove old cert

parent 70d548fa
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment