Skip to content

Commit 6c2b2fd

Browse files
committed
Adjust let's encrypt mail ssl delete routine.
1 parent 2f07d0c commit 6c2b2fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/edit/mail/index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258

259259
// Delete SSL certificate
260260
if (( $v_ssl == 'yes' ) && (empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
261-
exec (HESTIA_CMD."v-delete-mail-domain-ssl ".$v_username." ".$v_domain." 'no'", $output, $return_var);
261+
exec (HESTIA_CMD."v-delete-domain-ssl ".$v_username." ".$v_domain." 'no' 'yes'", $output, $return_var);
262262
check_return_code($return_var,$output);
263263
unset($output);
264264
$v_ssl_crt = '';
@@ -270,8 +270,7 @@
270270

271271
// Add Lets Encrypt support
272272
if ((!empty($_POST['v_ssl'])) && ( $v_letsencrypt == 'no' ) && (!empty($_POST['v_letsencrypt'])) && empty($_SESSION['error_msg'])) {
273-
$l_aliases = 'mail.' . $v_domain;
274-
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." '".$l_aliases."' 'no'", $output, $return_var);
273+
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." '' 'yes'", $output, $return_var);
275274
check_return_code($return_var,$output);
276275
unset($output);
277276
$v_letsencrypt = 'yes';

0 commit comments

Comments
 (0)