mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
FIX: named_enable_dnssec should verify if DNS is installed
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
parent
00309f8e42
commit
42d035f64c
@ -598,6 +598,11 @@ def named_enable_dnssec():
|
||||
"""
|
||||
Enable dnssec in named.conf
|
||||
"""
|
||||
if not bindinstance.named_conf_exists():
|
||||
# DNS service may not be configured
|
||||
root_logger.info('DNS is not configured')
|
||||
return False
|
||||
|
||||
if not sysupgrade.get_upgrade_state('named.conf', 'dnssec_enabled'):
|
||||
root_logger.info('[Enabling "dnssec-enable" configuration in DNS]')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user