tweaks
This commit is contained in:
@@ -231,6 +231,7 @@ if ! [ "$?" = "0" ]; then
|
|||||||
echo "Unable to create home directory - $errors"
|
echo "Unable to create home directory - $errors"
|
||||||
exit 9
|
exit 9
|
||||||
fi
|
fi
|
||||||
|
echo "Done."
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Mounting chroot mounts..."
|
echo "Mounting chroot mounts..."
|
||||||
@@ -465,7 +466,8 @@ if [ "$networktype" = "dhcp" ]; then
|
|||||||
else
|
else
|
||||||
connection="$address"
|
connection="$address"
|
||||||
fi
|
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 "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
||||||
|
|
||||||
echo "exit 0" >> /mnt/setup-chroot.sh
|
echo "exit 0" >> /mnt/setup-chroot.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user