modules/patroni: create dataDir

This commit is contained in:
Max Headroom 2023-03-22 18:12:21 +01:00
parent 23b4929f5d
commit 2595a7ce5e

View file

@ -304,5 +304,9 @@ in
environment.sessionVariables = {
PATRONICTL_CONFIG_FILE = "${configFile}";
};
systemd.tmpfiles.rules = mkIf (cfg.postgresqlDataDir != "/var/lib/postgresql/${postgresql.psqlSchema}" || cfg.dataDir != "/var/lib/patroni") [
"d '${cfg.dataDir}' 0700 ${cfg.user} ${cfg.group} - -"
];
};
}