Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
spilo
Commits
7ee46758
Unverified
Commit
7ee46758
authored
4 years ago
by
Marco Giovannini
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Make sure created certificate are owned by postgres user
Close #479
parent
d81e7753
plural
feature/pg13
feature/pg13-inplace-upgrade
feature/pg13-inplace-upgrade-v2
feature/pg14-build
feature/postgresql-14
master
upd-pg_mon
2.0-p7
2.0-p6
2.0-p5
2.0-p4
2.0-p3
2.0-p2
1.6-p5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postgres-appliance/scripts/configure_spilo.py
+1
-1
postgres-appliance/scripts/configure_spilo.py
with
1 addition
and
1 deletion
+1
-1
postgres-appliance/scripts/configure_spilo.py
+
1
-
1
View file @
7ee46758
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment