The following code is duplicated in several upgrade scripts:
registry_file = os.path.join( pki.server.REGISTRY_DIR, 'tomcat', instance.name, instance.name) with open(registry_file, "r") as registry: lines = registry.readlines() user = None group = None for line in lines: m = re.search('^PKI_USER=(.*)$', line) if m: user = m.group(1) m = re.search('^PKI_GROUP=(.*)$', line) if m: group = m.group(1) uid = pwd.getpwnam(user).pw_uid gid = grp.getgrnam(group).gr_gid
It should be refactored into a reusable method.
Per CS/DS Meeting of 04/13/2015: 10.3
Moved to 10.2.4 per discussion with alee.
Fixed in master:
Metadata Update from @edewata: - Issue assigned to edewata - Issue set to the milestone: 10.2.4
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/1903
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.