diff options
author | Ade Lee <alee@redhat.com> | 2012-08-15 22:53:51 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-09-17 18:43:36 -0400 |
commit | 3dd31a875650c7fe7c67ca6b47f2058c1181dafb (patch) | |
tree | 137f46dfe1684ebcbd6e9e70ef3c5a690ab32d07 /ipaserver/install/service.py | |
parent | 79b89f41962985cf0ab96238b21409b5874f67f8 (diff) | |
download | freeipa-3dd31a875650c7fe7c67ca6b47f2058c1181dafb.tar.gz freeipa-3dd31a875650c7fe7c67ca6b47f2058c1181dafb.tar.xz freeipa-3dd31a875650c7fe7c67ca6b47f2058c1181dafb.zip |
Modifications to install scripts for dogtag 10
Dogtag 10 uses a new installer, new directory layout and new default
ports. This patch changes the ipa install code to integrate these changes.
https://fedorahosted.org/freeipa/ticket/2846
Diffstat (limited to 'ipaserver/install/service.py')
-rw-r--r-- | ipaserver/install/service.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index dcfcbc27f..e15d4e5e0 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -41,6 +41,17 @@ AUTO = 1 ENABLED = 2 DISABLED = 3 +# Determine if we have an updated dogtag instance (dogtag 10+) or +# an older one. +dogtag_service = 'pki-cad' +try: + for line in open("/etc/ipa/default.conf", "r"): + if "dogtag_version" in line: + dogtag_service = 'pki-tomcatd' + break +except IOError, e: + pass + # The service name as stored in cn=masters,cn=ipa,cn=etc. In the tuple # the first value is the *nix service name, the second the start order. SERVICE_LIST = { @@ -49,7 +60,7 @@ SERVICE_LIST = { 'DNS':('named', 30), 'MEMCACHE':('ipa_memcached', 39), 'HTTP':('httpd', 40), - 'CA':('pki-cad', 50), + 'CA':(dogtag_service, 50), 'ADTRUST':('smb', 60), 'EXTID':('winbind', 70) } |