URL: https://github.com/freeipa/freeipa/pull/172 Author: shanyin Title: #172: fix pki-tomcat error after uninstall Action: opened
PR body: """ I set up the freeipa(version 4.3.1) environment in Ubuntu 16.04, there is a reconfigure error found after uninstall. The error message is ERROR CA configuration failed. The pki log message shows that pkispawn : ERROR ....... OSError: [Errno 2] No such file or directory! The reason is that there is no pki-tomcatd.target.wants directory in /etc/systemd/system/ directory. Creating the directory can solve the problem. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/172/head:pr172 git checkout pr172
From 1dd08b6aa6d97597483b951cb8f5337bfc1c31b0 Mon Sep 17 00:00:00 2001 From: shanyin <[email protected]> Date: Wed, 19 Oct 2016 14:39:47 +0800 Subject: [PATCH] fix pki-tomcat error after uninstall --- ipaserver/install/cainstance.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index 384abc3..55184f0 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -585,6 +585,11 @@ def __spawn_instance(self): with open(cfg_file, "wb") as f: config.write(f) + # Create parent directory for pki-tomcatd service file + PKI_SERVICE_LOCATION="/etc/systemd/system/pki-tomcatd.target.wants" + if not os.path.exists(PKI_SERVICE_LOCATION): + os.mkdir(PKI_SERVICE_LOCATION) + self.backup_state('installed', True) try: DogtagInstance.spawn_instance(self, cfg_file)
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code
