diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2018-11-14 01:40:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 01:40:38 +0000 |
commit | 58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a (patch) | |
tree | ff54b44b1fc199aee36ab6acef6a44cf45cda790 /nixos/tests | |
parent | 2e18ba6c5af5d35e04ed71dac232f2469458c78c (diff) | |
parent | a0371d476115a8fab54186664c9cca3d19e9537f (diff) | |
download | nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar.gz nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar.bz2 nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar.lz nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar.xz nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.tar.zst nixlib-58c0c2574c5dd97e0c7fa51c9335ebef177f0d1a.zip |
Merge pull request #49840 from markuskowa/fix-pgBackup
nixos/postgresqlBackup: set to umask to 0077
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/postgresql.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/postgresql.nix b/nixos/tests/postgresql.nix index ed54a31c8e52..1d434b62a5cb 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; ''; |