diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index eb1ac6bcb30..510e8f17133 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -339,7 +339,6 @@ in ln -sfn "${pkgs.writeText "recovery.conf" cfg.recoveryConfig}" \ "${cfg.dataDir}/recovery.conf" ''} - echo chmod ${dirMode} "${cfg.dataDir}" chmod ${dirMode} "${cfg.dataDir}" exec postgres diff --git a/nixos/tests/postgresql.nix b/nixos/tests/postgresql.nix index 433a64e9fab..a787d0f5976 100644 --- a/nixos/tests/postgresql.nix +++ b/nixos/tests/postgresql.nix @@ -106,7 +106,6 @@ in $machine->succeed("${c1}/bin/switch-to-configuration test >&2"); $machine->succeed("journalctl -u postgresql | grep -q -i stopped"); # was restarted $machine->succeed("echo select 1 | sudo -u postgres psql"); # works after restart - $machine->succeed("sudo -u admin ls -la / >&2"); $machine->succeed("sudo -u admin ls ${dataDir}"); $machine->shutdown;