use copy instead move

This commit is contained in:
Pascal Vizeli 2017-03-23 23:44:14 +01:00
parent 036f375f06
commit 423124ff34

View File

@ -6,6 +6,6 @@ BOOT_SSH_KEY=/mnt/boot/authorized_keys
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
if [ -f $BOOT_SSH_KEY ]; then
mv $BOOT_SSH_KEY $HOME_SSH_KEY
cp $BOOT_SSH_KEY $HOME_SSH_KEY
chmod 0600 $HOME_SSH_KEY
fi