test
sean 7 years ago
parent e097ca1003
commit 985cdf59fc

@ -231,6 +231,7 @@ if ! [ "$?" = "0" ]; then
echo "Unable to create home directory - $errors"
exit 9
fi
echo "Done."
echo ""
echo "Mounting chroot mounts..."
@ -465,7 +466,8 @@ if [ "$networktype" = "dhcp" ]; then
else
connection="$address"
fi
echo "(echo \"Server available at $connection\"; cat \"/home/${admin}/.ssh/id_rsa\") | mail -s \"$hostname SSH key\" -A \"/home/${admin}/.ssh/id_rsa\" --content-filename=\"${hostname}.ssh.key\" --content-name=\"${hostname}.ssh.key\" ${admins}" >> /mnt/setup-chroot.sh
# --content-filename=\"${hostname}.ssh.key\" --content-name=\"${hostname}.ssh.key\"
echo "(echo \"Server available at $connection\"; cat \"/home/${admin}/.ssh/id_rsa\") | mail -s \"$hostname SSH key\" -A \"/home/${admin}/.ssh/id_rsa\" \"${admins}\"" >> /mnt/setup-chroot.sh
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
echo "exit 0" >> /mnt/setup-chroot.sh

Loading…
Cancel
Save