postgres: fix permissions on the dataDir, it refuses 0770

This commit is contained in:
Pierre Bourdon 2024-06-24 21:45:00 +02:00
parent 2ed6f92ed8
commit be5c6f0656
Signed by: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -12,8 +12,8 @@ in {
config = lib.mkIf cfg.enable {
systemd.tmpfiles.rules = [
"d /var/db 0755 root root - -"
"d /var/db/postgresql 0770 postgres postgres - -"
"d ${dataDir} 0770 postgres postgres - -"
"d /var/db/postgresql 0750 postgres postgres - -"
"d ${dataDir} 0750 postgres postgres - -"
];
services.postgresql = {