Unverified Commit 7ee46758 authored by Marco Giovannini's avatar Marco Giovannini Committed by GitHub
Browse files

Make sure created certificate are owned by postgres user

Close #479
Showing with 1 addition and 1 deletion
+1 -1
......@@ -107,7 +107,7 @@ def write_certificates(environment, overwrite):
output, _ = p.communicate()
logging.debug(output)
uid = pwd.getpwnam(environment['PGUSER_SUPERUSER']).pw_uid
uid = pwd.getpwnam('postgres').pw_uid
os.chmod(environment['SSL_PRIVATE_KEY_FILE'], 0o600)
os.chown(environment['SSL_PRIVATE_KEY_FILE'], uid, -1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment