summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install9
1 files changed, 9 insertions, 0 deletions
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