diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2013-04-02 19:48:38 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-04-04 12:50:08 +0200 |
commit | 43fc525fbb98f5b6ff09df172f969a1707a6cbf4 (patch) | |
tree | 3fe30d6aa7c0408c04179a02583ac0b3695ef7de /ipa-client | |
parent | 4a30bf55ac3a067c668058299cbd355ab63e9dd9 (diff) | |
download | freeipa-43fc525fbb98f5b6ff09df172f969a1707a6cbf4.tar.gz freeipa-43fc525fbb98f5b6ff09df172f969a1707a6cbf4.tar.xz freeipa-43fc525fbb98f5b6ff09df172f969a1707a6cbf4.zip |
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
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 9 |
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 |