From 43fc525fbb98f5b6ff09df172f969a1707a6cbf4 Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Tue, 2 Apr 2013 19:48:38 +0200 Subject: Remove CA cert on client uninstall The CA cert (/etc/ipa/ca.crt) was not being removed on client uninstall, causing failure on subsequent client installation in some cases. https://fedorahosted.org/freeipa/ticket/3537 --- ipa-client/ipa-install/ipa-client-install | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipa-client') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 56896f363..126611a82 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -644,6 +644,15 @@ def uninstall(options, env): root_logger.warning('Please remove /etc/ipa/default.conf manually, ' 'as it can cause subsequent installation to fail.') + # Remove the CA cert + try: + os.remove(CACERT) + except OSError, e: + root_logger.warning('%s could not be removed: %s', CACERT, str(e)) + root_logger.warning('Please remove %s manually, ' + 'as it can cause subsequent ' + 'installation to fail.', CACERT) + root_logger.info("Client uninstall complete.") # The next block of code prompts for reboot, therefore all uninstall -- cgit