diff --git a/setup.sh b/setup.sh index 6f34bce..5cd3771 100644 --- a/setup.sh +++ b/setup.sh @@ -460,7 +460,7 @@ 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