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-install15
1 files changed, 7 insertions, 8 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 09cc8a099..504da2c61 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -573,15 +573,14 @@ def main():
else:
host_default = get_fqdn()
- if options.unattended:
- try:
+ try:
+ if options.unattended:
verify_fqdn(host_default,options.no_host_dns)
- except RuntimeError, e:
- sys.exit(str(e) + "\n")
-
- host_name = host_default
- else:
- host_name = read_host_name(host_default,options.no_host_dns)
+ host_name = host_default
+ else:
+ host_name = read_host_name(host_default,options.no_host_dns)
+ except RuntimeError, e:
+ sys.exit(str(e) + "\n")
host_name = host_name.lower()
logging.debug("will use host_name: %s\n" % host_name)