nixos-18.03/pgbackup: Fix bug in postgresql-backup module that causes

pg_dump to fail

Run pg_dump as postgres super user instead of root.
See https://github.com/NixOS/nixpkgs/issues/41388
release-18.03-flake
Markus Kowalewski 2018-06-18 23:58:30 +02:00
parent 058417c31e
commit 508477f076
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ let
postgresqlBackupCron = db:
''
${config.services.postgresqlBackup.period} root ${config.services.postgresql.package}/bin/pg_dump ${db} | ${gzip}/bin/gzip -c > ${location}/${db}.gz
${config.services.postgresqlBackup.period} root ${config.services.postgresql.package}/bin/pg_dump ${db} -U postgres | ${gzip}/bin/gzip -c > ${location}/${db}.gz
'';
in