Skip to content

Commit 0f14b4f

Browse files
author
Kristan Kenney
committed
Unlink DNS & Mail from Web domain deletion/suspension
When deleting a web domain, the associated DNS zone and mail domain are removed as well. Changed system behavior so that deleting or suspending a Web domain does not effect DNS zones or Mail domains.
1 parent 7e4e973 commit 0f14b4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/delete/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
if (!empty($_GET['domain'])) {
2020
$v_username = escapeshellarg($user);
2121
$v_domain = escapeshellarg($_GET['domain']);
22-
exec (HESTIA_CMD."v-delete-domain ".$v_username." ".$v_domain, $output, $return_var);
22+
exec (HESTIA_CMD."v-delete-web-domain ".$v_username." ".$v_domain, $output, $return_var);
2323
check_return_code($return_var,$output);
2424
unset($output);
2525
}

web/suspend/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
if (!empty($_GET['domain'])) {
2626
$v_username = escapeshellarg($user);
2727
$v_domain = escapeshellarg($_GET['domain']);
28-
exec (HESTIA_CMD."v-suspend-domain ".$v_username." ".$v_domain, $output, $return_var);
28+
exec (HESTIA_CMD."v-suspend-web-domain ".$v_username." ".$v_domain, $output, $return_var);
2929
}
3030
check_return_code($return_var,$output);
3131
unset($output);

0 commit comments

Comments
 (0)