summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2015-05-15 15:45:34 +0200
committerJan Cholasta <jcholast@redhat.com>2015-05-19 12:59:18 +0000
commit5a741b614f39a148d849877e743200de5a7302db (patch)
treeec91732f3f7864c2dd7b02fd50a6a5a8ced52453 /ipaserver
parent7ff7b1f533cc10c44acf6020b545b253de1ad37b (diff)
downloadfreeipa-5a741b614f39a148d849877e743200de5a7302db.tar.gz
freeipa-5a741b614f39a148d849877e743200de5a7302db.tar.xz
freeipa-5a741b614f39a148d849877e743200de5a7302db.zip
explicitly destroy httpd service ccache file during httpinstance removal
during IPA server uninstall, the httpd service ccache is not removed from runtime directory. This file then causes server-side client install to fail when performing subsequent installation without rebooting/recreating runtime directories. This patch ensures that the old httpd ccache is explicitly destroyed during uninstallation. https://fedorahosted.org/freeipa/ticket/4973 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/httpinstance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py
index 18cf6bb1a..31eab022d 100644
--- a/ipaserver/install/httpinstance.py
+++ b/ipaserver/install/httpinstance.py
@@ -412,6 +412,10 @@ class HTTPInstance(service.Service):
root_logger.debug(error)
pass
+ # Remove the ccache file for the HTTPD service
+ ipautil.run([paths.KDESTROY, '-c', paths.KRB5CC_HTTPD], runas='apache',
+ raiseonerr=False)
+
# Remove the configuration files we create
installutils.remove_file(paths.HTTPD_IPA_REWRITE_CONF)
installutils.remove_file(paths.HTTPD_IPA_CONF)