Explorar el Código

Update mail domain routines

Kristan Kenney hace 7 años
padre
commit
01293af909
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  1. 4 0
      func/domain.sh
  2. 1 0
      func/rebuild.sh

+ 4 - 0
func/domain.sh

@@ -629,6 +629,10 @@ add_mail_ssl_config() {
 
 # Delete SSL support for mail domain
 del_mail_ssl_config() {
+    
+    # Remove old mail certificates
+    rm -f $HOMEDIR/$user/conf/mail/$domain/ssl/*
+
     # Remove dovecot configuration
     rm -f /etc/dovecot/conf.d/domains/mail.$domain.conf
 

+ 1 - 0
func/rebuild.sh

@@ -498,6 +498,7 @@ rebuild_mail_domain_conf() {
 
         # Remove and recreate SSL configuration
         if [ "$SSL" = 'yes' ]; then
+            del_mail_ssl_config
             add_mail_ssl_config
 
             # Update counters