moved email
This commit is contained in:
@@ -507,13 +507,6 @@ echo "echo \"mailhub=${smtp}\" >> /etc/ssmtp/ssmtp.conf" >> /mnt/setup-chroot.sh
|
|||||||
echo "echo \"UseSTARTTLS=YES\" >> /etc/ssmtp/ssmtp.conf" >> /mnt/setup-chroot.sh
|
echo "echo \"UseSTARTTLS=YES\" >> /etc/ssmtp/ssmtp.conf" >> /mnt/setup-chroot.sh
|
||||||
echo "echo \"root:${admins}\" >> /etc/ssmtp/revaliases" >> /mnt/setup-chroot.sh
|
echo "echo \"root:${admins}\" >> /etc/ssmtp/revaliases" >> /mnt/setup-chroot.sh
|
||||||
echo "chfn -f '${email}' root" >> /mnt/setup-chroot.sh
|
echo "chfn -f '${email}' root" >> /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` (`wget -qO - ifconfig.me`)"
|
|
||||||
else
|
|
||||||
connection="$address"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "serverinfo=\`cat \"/home/${admin}/.ssh/id_rsa\"\`" >> /mnt/setup-chroot.sh
|
echo "serverinfo=\`cat \"/home/${admin}/.ssh/id_rsa\"\`" >> /mnt/setup-chroot.sh
|
||||||
echo "serverinfo=\"Server available at $connection\\n\\n\$serverinfo\"; echo -e \"\$serverinfo\" | mail -s \"$hostname SSH key\" -r \"${email}\" \"\`cat /admins\`\"" >> /mnt/setup-chroot.sh
|
echo "serverinfo=\"Server available at $connection\\n\\n\$serverinfo\"; echo -e \"\$serverinfo\" | mail -s \"$hostname SSH key\" -r \"${email}\" \"\`cat /admins\`\"" >> /mnt/setup-chroot.sh
|
||||||
@@ -557,6 +550,14 @@ echo " exit 122">> /mnt/setup-chroot.sh
|
|||||||
echo "fi">> /mnt/setup-chroot.sh
|
echo "fi">> /mnt/setup-chroot.sh
|
||||||
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
echo "echo \"Done.\"" >> /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` (`wget -qO - ifconfig.me`)"
|
||||||
|
else
|
||||||
|
connection="$address"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "exit 0" >> /mnt/setup-chroot.sh
|
echo "exit 0" >> /mnt/setup-chroot.sh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user