From 5b12344ba238d8d3f5434d11a7d5dc40582c0e98 Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 13 Sep 2009 17:50:21 +0000 Subject: [PATCH] fixed ssh host key remove condition --- pyneo-rootfs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index 9611088..dfb0b25 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -244,10 +244,10 @@ if [ ! -f /home/persistant/ssh_host_rsa_key ] || [ ! -f /home/persistant/ssh_host_dsa_key ] || [ ! -f /home/persistant/ssh_host_dsa_key.pub ]; then # make sure none of the files still exists - [ -f /home/persistant/ssh_host_rsa_key ] || rm /home/persistant/ssh_host_rsa_key - [ -f /home/persistant/ssh_host_rsa_key.pub ] || rm /home/persistant/ssh_host_rsa_key - [ -f /home/persistant/ssh_host_dsa_key ] || rm /home/persistant/ssh_host_dsa_key - [ -f /home/persistant/ssh_host_dsa_key.pub ] || rm /home/persistant/ssh_host_dsa_key.pub + [ ! -f /home/persistant/ssh_host_rsa_key ] || rm /home/persistant/ssh_host_rsa_key + [ ! -f /home/persistant/ssh_host_rsa_key.pub ] || rm /home/persistant/ssh_host_rsa_key + [ ! -f /home/persistant/ssh_host_dsa_key ] || rm /home/persistant/ssh_host_dsa_key + [ ! -f /home/persistant/ssh_host_dsa_key.pub ] || rm /home/persistant/ssh_host_dsa_key.pub echo -n "Generating ssh host key pairs:" echo -n " rsa..."; /usr/bin/ssh-keygen -q -t rsa -f /home/persistant/ssh_host_rsa_key -C '' -N '' echo -n " dsa..."; /usr/bin/ssh-keygen -q -t dsa -f /home/persistant/ssh_host_dsa_key -C '' -N ''