fmt
This commit is contained in:
parent
f418e5ec19
commit
bfc55f27f3
9 changed files with 60 additions and 41 deletions
|
|
@ -140,7 +140,7 @@ in {
|
|||
else []
|
||||
)
|
||||
];
|
||||
readWritePaths = lib.mkIf (dump != null) [ "/var/backup/postgres/" ];
|
||||
readWritePaths = lib.mkIf (dump != null) ["/var/backup/postgres/"];
|
||||
preHook = lib.mkIf (dump != null) ''
|
||||
mkdir -p /var/backup/postgres
|
||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump ${dump} > /var/backup/postgres/${key}.sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue