You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate-toolkit/files/calculate-toolkit-0.3.0-ssh...

17 lines
578 B

diff --git a/cl-lxc b/cl-lxc
index 2cdcc11..8c29bde 100755
--- a/cl-lxc
+++ b/cl-lxc
@@ -614,6 +614,11 @@ upgrade_lxc() {
sed -i "s:^root\:.*$:$root:" $path_work/$name_upgrading/rootfs$num_next/etc/shadow
eend
+ ebegin $"Copying ssh keys"
+ cp $path_work/$name_upgrading/rootfs$num_cur/etc/ssh/*_key* \
+ $path_work/$name_upgrading/rootfs$num_next/etc/ssh
+ eend
+
ebegin $"Preparing first boot setup script"
cat << EOL > $path_work/$name_upgrading/rootfs$num_next/etc/local.d/firststart.start
cl-core --method setup_system --no-progress --usenew-conf --network on