tweaks
This commit is contained in:
@@ -460,7 +460,11 @@ echo "echo \"UseSTARTTLS=YES\" >> /etc/ssmtp/ssmtp.conf" >> /mnt/setup-chroot.sh
|
||||
|
||||
echo "echo \"\"" >> /mnt/setup-chroot.sh
|
||||
echo "echo \"Sending SSH key via e-mail...\"" >> /mnt/setup-chroot.sh
|
||||
if [ "$networktype" = "dhcp" ]; then connection = `hostname -I`; else connection = "$address"; fi
|
||||
if [ "$networktype" = "dhcp" ]; then
|
||||
connection=`hostname -I`
|
||||
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
|
||||
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user