From 799d7539a5cae0b5a9deb6a0cc93d7e7447d6fe0 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 13 Feb 2009 17:01:36 +0000 Subject: [PATCH] preserve time/date on copy of hostkeys git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2745 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index d32765c4b..5251724e7 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -122,7 +122,7 @@ fi # generated the keys before, still have private keys in install # copy all to the new private directory and then remove private keys if [ -f /install/postscripts/hostkeys/ssh_host_key ]; then - /bin/cp /install/postscripts/hostkeys/* /etc/xcat/hostkeys/. + /bin/cp -p /install/postscripts/hostkeys/* /etc/xcat/hostkeys/. /bin/rm /install/postscripts/hostkeys/ssh_host_dsa_key /bin/rm /install/postscripts/hostkeys/ssh_host_rsa_key /bin/rm /install/postscripts/hostkeys/ssh_host_key