summaryrefslogtreecommitdiff
path: root/scripts/install/install-postinst-new
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-xscripts/install/install-postinst-new6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index 84b96989..d2187434 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -77,6 +77,12 @@ copy_config () {
chgrp vyattacfg $cfg_dir/config.boot
chmod 775 $cfg_dir/config.boot
fi
+
+ # copy ssh keys
+ if [ -d /mnt/ssh ]; then
+ echo "Copying SSH keys."
+ cp -p /mnt/ssh/* $rootfsdir/etc/ssh
+ fi
}
# setup grub on the boot sector of a user selected drive