Skip to content

Commit 5d705da

Browse files
committed
*Add original delete SSL logic back
1 parent 4f0bade commit 5d705da

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

web/edit/web/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,17 @@
274274
$restart_web = 'yes';
275275
$restart_proxy = 'yes';
276276
}
277+
else{
278+
// Delete SSL certificate
279+
if (( $v_ssl == 'yes' ) && (empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
280+
exec (VESTA_CMD."v-delete-web-domain-ssl ".$v_username." ".$v_domain." 'no'", $output, $return_var);
281+
check_return_code($return_var,$output);
282+
unset($output);
283+
$v_ssl = 'no';
284+
$restart_web = 'yes';
285+
$restart_proxy = 'yes';
286+
}
287+
}
277288

278289
// Enable Lets Encrypt support
279290
if (( $v_letsencrypt == 'no' || empty( $v_letsencrypt)) && (!empty($_POST['v_letsencrypt'])) && empty($_SESSION['error_msg'])) {

0 commit comments

Comments
 (0)