mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Call v-change-dns-domain-ip only if ip was changed
This commit is contained in:
parent
198f8ea3be
commit
e472a33b23
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ if (!empty($_POST['save'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chane dns domain IP
|
// Chane dns domain IP
|
||||||
if (empty($_SESSION['error_msg'])) {
|
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
|
||||||
exec (VESTA_CMD."v-list-dns-domain ".$v_username." ".$v_domain." json", $output, $return_var);
|
exec (VESTA_CMD."v-list-dns-domain ".$v_username." ".$v_domain." json", $output, $return_var);
|
||||||
unset($output);
|
unset($output);
|
||||||
if ($return_var == 0 ) {
|
if ($return_var == 0 ) {
|
||||||
|
@ -112,7 +112,7 @@ if (!empty($_POST['save'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change dns ip for each alias
|
// Change dns ip for each alias
|
||||||
if (empty($_SESSION['error_msg'])) {
|
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
|
||||||
foreach($valiases as $v_alias ){
|
foreach($valiases as $v_alias ){
|
||||||
exec (VESTA_CMD."v-list-dns-domain ".$v_username." '".$v_alias."' json", $output, $return_var);
|
exec (VESTA_CMD."v-list-dns-domain ".$v_username." '".$v_alias."' json", $output, $return_var);
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue