summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-09-13 12:10:55 -0400
committerSimo Sorce <ssorce@redhat.com>2007-09-13 12:10:55 -0400
commit7633abb9e4869d1ad35f33f36e184481e07804c4 (patch)
treef1b401b734e8792f13750de9395cbc3e7d44e497 /ipa-server
parent2ca655980b623a4a65a635a1467c0db90f421f25 (diff)
downloadfreeipa-7633abb9e4869d1ad35f33f36e184481e07804c4.tar.gz
freeipa-7633abb9e4869d1ad35f33f36e184481e07804c4.tar.xz
freeipa-7633abb9e4869d1ad35f33f36e184481e07804c4.zip
Better we do not fiddle with /etc/hosts, make sure to abort and let the admin
fix it.
Diffstat (limited to 'ipa-server')
-rw-r--r--ipa-server/ipa-install/ipa-server-install23
1 files changed, 2 insertions, 21 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install
index d04c3a3b3..e4d859950 100644
--- a/ipa-server/ipa-install/ipa-server-install
+++ b/ipa-server/ipa-install/ipa-server-install
@@ -86,12 +86,6 @@ def logging_setup(options):
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)
-def setup_hosts(host, ip):
- print ""
- print "TODO"
- print ""
- print ""
-
def main():
options = parse_options()
logging_setup(options)
@@ -123,21 +117,8 @@ def main():
print "hostname resolves to the ip address of your network interface."
print "The KDC service does not listen on 127.0.0.1"
print ""
- if not options.unattended:
- change_hosts = raw_input("Do you want to change the /etc/hosts file ? [y/N] ")
- print ""
- if change_hosts.lower() == "y":
- ip = raw_input("What is the netowrk IP address used by this server ? ")
- print ""
- if (ip.find(".") == -1):
- print "["+ip+"] is an invalid IP address"
- return "-Fatal Error-"
- setup_hosts(host_name, ip)
- else:
- print "Please fix your /etc/hosts file and restart the setup program"
- print "-Aborted-"
- else:
- return "-Fatal Error-"
+ print "Please fix your /etc/hosts file and restart the setup program"
+ return "-Fatal Error-"
print "The Final KDC Host Name will be: " + host_name + ". With IP address: " + ip
print ""