From 16721fc0ffe0e149a3cc3f83b0ae21778aa84417 Mon Sep 17 00:00:00 2001 From: Florian Heigl Date: Fri, 8 Apr 2016 04:24:42 +0200 Subject: [PATCH] Update 02-ssh_host_key also handle zero byte host key files. had this on ubuntu for reasons i don't understand. (likely caused by this script or ubuntu 14.04's ssh upstart job) This should ensure it'll go away with another reboot saving some lifes. --- base_deb/etc/one-context.d/02-ssh_host_key | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_deb/etc/one-context.d/02-ssh_host_key b/base_deb/etc/one-context.d/02-ssh_host_key index d9bb27f..7a3e816 100755 --- a/base_deb/etc/one-context.d/02-ssh_host_key +++ b/base_deb/etc/one-context.d/02-ssh_host_key @@ -1,6 +1,6 @@ #!/bin/bash -if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then +if [ ! -s /etc/ssh/ssh_host_rsa_key ]; then dpkg-reconfigure openssh-server fi