Skip to content

Commit 9dd3cd3

Browse files
author
Kristan Kenney
committed
Fix removal of SSL certificates from data directory in function
1 parent 190c358 commit 9dd3cd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

func/domain.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,15 @@ del_mail_ssl_config() {
730730

731731
# Remove SSL certificates
732732
rm -f $HOMEDIR/$user/conf/mail/$domain/ssl/*
733-
rm -f $USER_DATA/ssl/mail.$domain.*
734733
rm -f /usr/local/hestia/ssl/mail/mail.$domain.*
735734
}
736735

736+
# Delete generated certificates from user configuration data directory
737+
del_mail_ssl_certificates(){
738+
rm -f $USER_DATA/ssl/mail.$domain.*
739+
rm -f $HOMEDIR/$user/conf/mail/$domain/ssl/*
740+
}
741+
737742
# Delete webmail support
738743
del_webmail_config() {
739744
if [ ! -z "$WEB_SYSTEM" ]; then

0 commit comments

Comments
 (0)