Explorar el Código

Remove old cert

Bob Mottram hace 8 años
padre
commit
a39685d1d3
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/freedombone-app-matrix

+ 6
- 0
src/freedombone-app-matrix Ver fichero

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