]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix hostname in keys at kvmx-create
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 19:15:11 +0000 (16:15 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 19:15:11 +0000 (16:15 -0300)
kvmx-create

index abcec83dc633657ddf61a78092e543bb34c735e1..8b30e8399b6d2c77970c25b633faad50c137abaf 100755 (executable)
@@ -366,6 +366,9 @@ EOF
   $APT_INSTALL openssh-server -y
   kvmx_sudo_run chroot $WORK/ service ssh stop
 
+  # Fix hostname in keys
+  kvmx_sudo_run sed -i -e "s/root@.*$/root@$hostname.$domain/" $WORK/etc/ssh/*.pub
+
   # Sudo
   echo "Installing sudo..."
   $APT_INSTALL sudo -y