File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ if [ "$DKIM" = 'yes' ] && [ -e "$USER_DATA/dns/$domain.conf" ]; then
6363fi
6464
6565# Delete SSL certificates and configuration
66- if [ " $SSL " = ' yes' ] || [ -f $HOMEDIR /$user /conf/mail/$domain /ssl/$domain .crt ]; then
66+ if [ " $SSL " = ' yes' ] || [ -e " $HOMEDIR /$user /conf/mail/$domain /ssl/$domain .crt" ]; then
6767 $BIN /v-delete-mail-domain-ssl $user $domain
6868fi
6969
7070# Delete webmail configuration if it exists
7171if [ ! -z " $WEB_SYSTEM " ] || [ ! -z " $PROXY_SYSTEM " ]; then
72- $BIN /v-delete-webmail $user $admin ' yes'
72+ $BIN /v-delete-webmail $user $domain ' yes'
7373fi
7474
7575# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ is_object_value_exist 'mail' 'DOMAIN' "$domain" '$SSL'
4242# Delete mail domain SSL configuration
4343del_mail_ssl_config
4444del_mail_ssl_certificates
45+ del_webmail_ssl_config
4546
4647# ----------------------------------------------------------#
4748# Hestia #
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ is_object_unsuspended 'mail' 'DOMAIN' "$domain"
4141
4242# Delete webmail configuration
4343del_webmail_config
44+ del_webmail_ssl_config
4445
4546# ----------------------------------------------------------#
4647# Hestia #
Original file line number Diff line number Diff line change @@ -758,17 +758,13 @@ add_webmail_config() {
758758# Delete webmail support
759759del_webmail_config () {
760760 if [ ! -z " $WEB_SYSTEM " ]; then
761- rm -f $HOMEDIR /$user /conf/mail/$domain /$WEB_SYSTEM .* conf
761+ rm -f $HOMEDIR /$user /conf/mail/$domain /$WEB_SYSTEM .conf
762762 rm -f /etc/$WEB_SYSTEM /conf.d/domains/$WEBMAIL_ALIAS .$domain .conf
763- rm -f $HOMEDIR /$user /conf/mail/$domain /$WEB_SYSTEM .* ssl.conf
764- rm -f /etc/$WEB_SYSTEM /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
765763 fi
766764
767765 if [ ! -z " $PROXY_SYSTEM " ]; then
768766 rm -f $HOMEDIR /$user /conf/mail/$domain /$PROXY_SYSTEM .* conf
769767 rm -f /etc/$PROXY_SYSTEM /conf.d/domains/$WEBMAIL_ALIAS .$domain .conf
770- rm -f $HOMEDIR /$user /conf/mail/$domain /$PROXY_SYSTEM .* ssl.conf
771- rm -f /etc/$PROXY_SYSTEM /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
772768 fi
773769}
774770
You can’t perform that action at this time.
0 commit comments