diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-10-21 11:14:28 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-10-21 11:14:28 -0400 |
commit | 81f8c5f0db8ccafb8c51978d92411f7869b3f536 (patch) | |
tree | ce5e7c59b4ac93f0ec1f2d6b214790461dc53503 | |
parent | 6b38de9454729743c338f2ce8bea60665fc458ca (diff) | |
download | freeipa-81f8c5f0db8ccafb8c51978d92411f7869b3f536.tar.gz freeipa-81f8c5f0db8ccafb8c51978d92411f7869b3f536.tar.xz freeipa-81f8c5f0db8ccafb8c51978d92411f7869b3f536.zip |
Auto-detect whether dogtag needs to be uninstalled
-rwxr-xr-x | install/tools/ipa-server-install | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 094654dbf..d031638ef 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -410,12 +410,15 @@ def main(): global fstore fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore') - if options.ca: - ca_type = 'dogtag' + if options.uninstall: + api.bootstrap(in_server=True) else: - ca_type = 'selfsign' + if options.ca: + ca_type = 'dogtag' + else: + ca_type = 'selfsign' - api.bootstrap(in_server=True, ra_plugin=ca_type) + api.bootstrap(in_server=True, ra_plugin=ca_type) api.finalize() if options.uninstall: @@ -426,7 +429,7 @@ def main(): print "Aborting uninstall operation." sys.exit(1) - return uninstall(options.ca) + return uninstall(not certs.ipa_self_signed()) print "==============================================================================" print "This program will setup the FreeIPA Server." |