summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/pkihelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/server/python/pki/server/deployment/pkihelper.py')
-rw-r--r--base/server/python/pki/server/deployment/pkihelper.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py
index 2898d7fe0..ad9a88e63 100644
--- a/base/server/python/pki/server/deployment/pkihelper.py
+++ b/base/server/python/pki/server/deployment/pkihelper.py
@@ -4650,6 +4650,19 @@ class PKIDeployer:
self.tps_connector = TPSConnector(self)
self.config_client = ConfigClient(self)
+ def init(self):
+
+ # ALWAYS initialize 'uid' and 'gid'
+ self.identity.add_uid_and_gid(self.mdict['pki_user'],
+ self.mdict['pki_group'])
+
+ # ALWAYS establish 'uid' and 'gid'
+ self.identity.set_uid(self.mdict['pki_user'])
+ self.identity.set_gid(self.mdict['pki_group'])
+
+ # ALWAYS initialize HSMs (when and if present)
+ self.hsm.initialize()
+
def deploy_webapp(self, name, doc_base, descriptor):
"""
Deploy a web application into a Tomcat instance.