about summary refs log tree commit diff
path: root/nixos/tests/postgresql.nix
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2018-11-14 01:40:38 +0000
committerGitHub <noreply@github.com>2018-11-14 01:40:38 +0000
commit58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a (patch)
treeff54b44b1fc199aee36ab6acef6a44cf45cda790 /nixos/tests/postgresql.nix
parent2e18ba6c5af5d35e04ed71dac232f2469458c78c (diff)
parenta0371d476115a8fab54186664c9cca3d19e9537f (diff)
Merge pull request #49840 from markuskowa/fix-pgBackup
nixos/postgresqlBackup: set to umask to 0077
Diffstat (limited to 'nixos/tests/postgresql.nix')
-rw-r--r--nixos/tests/postgresql.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/postgresql.nix b/nixos/tests/postgresql.nix
index ed54a31c8e52b..1d434b62a5cb5 100644
--- a/nixos/tests/postgresql.nix
+++ b/nixos/tests/postgresql.nix
@@ -58,6 +58,7 @@ let
       # Check backup service
       $machine->succeed("systemctl start postgresqlBackup-postgres.service");
       $machine->succeed("zcat /var/backup/postgresql/postgres.sql.gz | grep '<test>ok</test>'");
+      $machine->succeed("stat -c '%a' /var/backup/postgresql/postgres.sql.gz | grep 600");
       $machine->shutdown;
     '';