modules/patroni: create dataDir
This commit is contained in:
parent
23b4929f5d
commit
2595a7ce5e
1 changed files with 4 additions and 0 deletions
|
@ -304,5 +304,9 @@ in
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
PATRONICTL_CONFIG_FILE = "${configFile}";
|
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} - -"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue