summaryrefslogtreecommitdiff
path: root/tests/programs-ssh-empty-known-hosts.nix
blob: c6bbf356565b81e9449c907bfafac6ba560d9cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
{ config, pkgs, ... }:

{
  test = ''
    echo >&2 "checking existance of /etc/ssh/ssh_known_hosts"
    if test -e ${config.out}/etc/ssh/ssh_known_hosts; then
      echo >&2 "/etc/ssh/ssh_known_hosts exists but it shouldn't!"
      exit 1
    fi
  '';
}