summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-server-install
diff options
context:
space:
mode:
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-xinstall/tools/ipa-server-install10
1 files changed, 7 insertions, 3 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index d50dc611b..00b133464 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -908,9 +908,13 @@ def main():
if options.unattended:
# In unattended mode just use the cmdline flag
create_reverse = not options.no_reverse
- elif not options.no_reverse:
- # In interactive mode, if the flag was not explicitly specified, ask the user
- create_reverse = bindinstance.create_reverse()
+ else:
+ if options.no_reverse:
+ create_reverse = False
+ else:
+ # In interactive mode, if the flag was not explicitly
+ # specified, ask the user
+ create_reverse = bindinstance.create_reverse()
bind.setup(host_name, ip_address, realm_name, domain_name, dns_forwarders, options.conf_ntp, create_reverse, zonemgr=options.zonemgr)
if options.setup_dns: