do not add task 11 (delete domain from pdns db) if namserver is disabled and dns-server is not PowerDNS
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -169,7 +169,8 @@ class Cronjob
|
|||||||
'type' => '8',
|
'type' => '8',
|
||||||
'data' => $data
|
'data' => $data
|
||||||
));
|
));
|
||||||
} elseif ($type == '11' && $param1 != '') {
|
} elseif ($type == '11' && $param1 != '' && Settings::Get('system.bind_enable') == '1' && Settings::Get('system.dns_server') == 'PowerDNS') {
|
||||||
|
// -> if bind disabled or dns-server not PowerDNS -> no task
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['domain'] = $param1;
|
$data['domain'] = $param1;
|
||||||
$data = json_encode($data);
|
$data = json_encode($data);
|
||||||
|
|||||||
Reference in New Issue
Block a user