diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-01-19 14:18:30 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-03-22 10:40:44 +0100 |
commit | 49be6c8d3cc20902dbe8e92a74e31aed2fd21d9f (patch) | |
tree | 5a1e7cd570fcd769f2e9dd41daacb49cf769fee4 /ipaserver/install/server | |
parent | 4f25b296054076abf3d6e44f6b2e7552f993fb1c (diff) | |
download | freeipa-49be6c8d3cc20902dbe8e92a74e31aed2fd21d9f.tar.gz freeipa-49be6c8d3cc20902dbe8e92a74e31aed2fd21d9f.tar.xz freeipa-49be6c8d3cc20902dbe8e92a74e31aed2fd21d9f.zip |
Move user/group constants for PKI and DS into ipaplatform
https://fedorahosted.org/freeipa/ticket/5619
Reviewed-By: David Kupka <dkupka@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'ipaserver/install/server')
-rw-r--r-- | ipaserver/install/server/upgrade.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py index fc9c2eb62..3e60cfd36 100644 --- a/ipaserver/install/server/upgrade.py +++ b/ipaserver/install/server/upgrade.py @@ -25,6 +25,7 @@ from ipapython import ipaldap from ipapython.ipa_log_manager import root_logger from ipapython import certmonger from ipapython.dn import DN +from ipaplatform.constants import constants from ipaplatform.paths import paths from ipaserver.install import installutils from ipaserver.install import dsinstance @@ -945,7 +946,7 @@ def copy_crl_file(old_path, new_path=None): os.symlink(realpath, new_path) else: shutil.copy2(old_path, new_path) - pent = pwd.getpwnam(cainstance.PKI_USER) + pent = pwd.getpwnam(constants.PKI_USER) os.chown(new_path, pent.pw_uid, pent.pw_gid) tasks.restore_context(new_path) |