summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-install
diff options
context:
space:
mode:
authorKarl MacMillan <kmacmillan@mentalrootkit.com>2007-08-01 16:21:13 -0400
committerKarl MacMillan <kmacmillan@mentalrootkit.com>2007-08-01 16:21:13 -0400
commitaed1f9110511e3669ab43c3894064c1371878876 (patch)
tree1b2a30040f6fc9093021da53775bc6869d77eda2 /ipa-server/ipa-install
parentb1831b4593b3d219b79830f3012e7ff07f17b1d8 (diff)
downloadfreeipa-aed1f9110511e3669ab43c3894064c1371878876.tar.gz
freeipa-aed1f9110511e3669ab43c3894064c1371878876.tar.xz
freeipa-aed1f9110511e3669ab43c3894064c1371878876.zip
Add local-dist target.
Remove hard-coded config.
Diffstat (limited to 'ipa-server/ipa-install')
-rw-r--r--ipa-server/ipa-install/ipa-server-install9
1 files changed, 8 insertions, 1 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install
index 7abcafd8..fbf3fd05 100644
--- a/ipa-server/ipa-install/ipa-server-install
+++ b/ipa-server/ipa-install/ipa-server-install
@@ -75,7 +75,7 @@ def logging_setup(options):
formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s')
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)
-
+
def main():
options = parse_options()
logging_setup(options)
@@ -119,6 +119,13 @@ def main():
# Restart apache
run(["/sbin/service", "httpd", "restart"])
+ # Create the config file
+ fd = open("/etc/ipa/ipa.conf", "w")
+ fd.write("[defaults]\n")
+ fd.write("server=" + host_name + "\n")
+ fd.write("realm=" + options.realm_name + "\n")
+ fd.close()
+
return 0
main()