Browse Source

Remove old cert

Bob Mottram 7 years ago
parent
commit
a39685d1d3
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-app-matrix

+ 6
- 0
src/freedombone-app-matrix View File

604
 
604
 
605
     if [[ ${ONION_ONLY} == 'no' ]]; then
605
     if [[ ${ONION_ONLY} == 'no' ]]; then
606
         if [ ! -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem ]; then
606
         if [ ! -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.pem ]; then
607
+            if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt ]; then
608
+                rm /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt
609
+            fi
610
+            if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam ]; then
611
+                rm /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam
612
+            fi
607
             echo $'Obtaining certificate for the main domain'
613
             echo $'Obtaining certificate for the main domain'
608
             create_site_certificate ${MATRIX_DOMAIN_NAME} 'yes'
614
             create_site_certificate ${MATRIX_DOMAIN_NAME} 'yes'
609
         fi
615
         fi