summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ipa_server_certinstall.py
diff options
context:
space:
mode:
authorTimo Aaltonen <tjaalton@debian.org>2015-10-06 16:02:37 +0300
committerTomas Babej <tbabej@redhat.com>2015-11-04 13:12:12 +0100
commit874b6d9f28f29368ab5e4e4924136718fde9e2a8 (patch)
tree0fcceb22e3fc69ea2a4735ad1f2303ac3e0f0f80 /ipaserver/install/ipa_server_certinstall.py
parent0d66026d220dd675e9b017db37127b822815cf4a (diff)
downloadfreeipa-874b6d9f28f29368ab5e4e4924136718fde9e2a8.tar.gz
freeipa-874b6d9f28f29368ab5e4e4924136718fde9e2a8.tar.xz
freeipa-874b6d9f28f29368ab5e4e4924136718fde9e2a8.zip
ipaplatform: Add HTTPD_USER to constants, and use it.
https://fedorahosted.org/freeipa/ticket/5343 Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipaserver/install/ipa_server_certinstall.py')
-rw-r--r--ipaserver/install/ipa_server_certinstall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/ipa_server_certinstall.py b/ipaserver/install/ipa_server_certinstall.py
index e90b2abd6..ac0b0274e 100644
--- a/ipaserver/install/ipa_server_certinstall.py
+++ b/ipaserver/install/ipa_server_certinstall.py
@@ -24,6 +24,7 @@ import os.path
import pwd
import optparse
+from ipaplatform.constants import constants
from ipaplatform.paths import paths
from ipapython import admintool
from ipapython.dn import DN
@@ -151,7 +152,7 @@ class ServerCertInstall(admintool.AdminTool):
os.chmod(os.path.join(dirname, 'key3.db'), 0o640)
os.chmod(os.path.join(dirname, 'secmod.db'), 0o640)
- pent = pwd.getpwnam("apache")
+ pent = pwd.getpwnam(constants.HTTPD_USER)
os.chown(os.path.join(dirname, 'cert8.db'), 0, pent.pw_gid)
os.chown(os.path.join(dirname, 'key3.db'), 0, pent.pw_gid)
os.chown(os.path.join(dirname, 'secmod.db'), 0, pent.pw_gid)