summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-04-03 15:49:07 -0400
committerRob Crittenden <rcritten@redhat.com>2008-04-03 15:49:07 -0400
commita761093a30da8ec131f2ee410edf0f71ac250c41 (patch)
treebb3c6bae8227b4ac05ae3dc86ec61509541a05de
parent8dafa9dc92c76b35de0e0b1dc9ef220c99ad1946 (diff)
downloadfreeipa-a761093a30da8ec131f2ee410edf0f71ac250c41.tar.gz
freeipa-a761093a30da8ec131f2ee410edf0f71ac250c41.tar.xz
freeipa-a761093a30da8ec131f2ee410edf0f71ac250c41.zip
Create /etc/ipa/ipa.conf earlier in the installation process.
Because the ipa.config() object raises an error if there is no configuration file and auto-detection fails, ipa_webgui may fail to start at install time. 440475
-rw-r--r--ipa-server/ipa-install/ipa-server-install16
1 files changed, 8 insertions, 8 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install
index b8b020c70..09fba19c8 100644
--- a/ipa-server/ipa-install/ipa-server-install
+++ b/ipa-server/ipa-install/ipa-server-install
@@ -486,6 +486,14 @@ def main():
http = ipaserver.httpinstance.HTTPInstance(fstore)
http.create_instance(realm_name, host_name, domain_name)
+ # Create the config file
+ fstore.backup_file("/etc/ipa/ipa.conf")
+ fd = open("/etc/ipa/ipa.conf", "w")
+ fd.write("[defaults]\n")
+ fd.write("server=" + host_name + "\n")
+ fd.write("realm=" + realm_name + "\n")
+ fd.close()
+
# Create a Web Gui instance
webgui = ipaserver.httpinstance.WebGuiInstance()
webgui.create_instance()
@@ -515,14 +523,6 @@ def main():
# Set the admin user kerberos password
ds.change_admin_password(admin_password)
- # Create the config file
- fstore.backup_file("/etc/ipa/ipa.conf")
- fd = open("/etc/ipa/ipa.conf", "w")
- fd.write("[defaults]\n")
- fd.write("server=" + host_name + "\n")
- fd.write("realm=" + realm_name + "\n")
- fd.close()
-
# Call client install script
try:
run(["/usr/sbin/ipa-client-install", "--on-master", "--unattended", "--domain", domain_name, "--server", host_name, "--realm", realm_name])