summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcrit@ipa.greyoak.com>2008-07-03 15:18:07 -0400
committerroot <root@ipa.greyoak.com>2008-07-03 15:20:19 -0400
commit1bd0a868a2c60710ee2a1a5ec219418da71c105f (patch)
tree33574f051edb4cc9bcba0715015243e4e5bc5e7f
parente9196e2d9311f4de0423745568fe72f69dc4fa52 (diff)
downloadfreeipa-1bd0a868a2c60710ee2a1a5ec219418da71c105f.tar.gz
freeipa-1bd0a868a2c60710ee2a1a5ec219418da71c105f.tar.xz
freeipa-1bd0a868a2c60710ee2a1a5ec219418da71c105f.zip
NSS_DIR is already fetched into a variable, use that instead.
451098
-rw-r--r--ipa-server/ipa-install/ipa-server-certinstall12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipa-server/ipa-install/ipa-server-certinstall b/ipa-server/ipa-install/ipa-server-certinstall
index 35fb7216d..89f89a587 100644
--- a/ipa-server/ipa-install/ipa-server-certinstall
+++ b/ipa-server/ipa-install/ipa-server-certinstall
@@ -147,14 +147,14 @@ def main():
set_http_cert_name(server_cert[0])
# Fix the database permissions
- os.chmod(NSS_DIR + "/cert8.db", 0640)
- os.chmod(NSS_DIR + "/key3.db", 0640)
- os.chmod(NSS_DIR + "/secmod.db", 0640)
+ os.chmod(dirname + "/cert8.db", 0640)
+ os.chmod(dirname + "/key3.db", 0640)
+ os.chmod(dirname + "/secmod.db", 0640)
pent = pwd.getpwnam("apache")
- os.chown(NSS_DIR + "/cert8.db", 0, pent.pw_gid )
- os.chown(NSS_DIR + "/key3.db", 0, pent.pw_gid )
- os.chown(NSS_DIR + "/secmod.db", 0, pent.pw_gid )
+ os.chown(dirname + "/cert8.db", 0, pent.pw_gid )
+ os.chown(dirname + "/key3.db", 0, pent.pw_gid )
+ os.chown(dirname + "/secmod.db", 0, pent.pw_gid )
except Exception, e:
print "an unexpected error occurred: %s" % str(e)