Update mail.sh

This commit is contained in:
myve 2024-03-22 12:59:27 -06:00
commit 987b5ecfe4

View file

@ -1076,8 +1076,6 @@ echo -e '\n\n\e[1;32mOpenssl certificates have successfully been generated!\e[0m
rm ${0} rm ${0}
dhparam dhparam
echo -e '\n\e[1m\t## Run "~/dhparam" upon logging in\n\e[0m'
echo -e "\e[1;32mInstaller has completed, login at https://${subdomain}.${domain} to access your new email." echo -e "\e[1;32mInstaller has completed, login at https://${subdomain}.${domain} to access your new email."
echo -e "Reboot is recommended...\e[0m\n" echo -e "Reboot is recommended...\e[0m\n"
sudo rm ${0} sudo rm ${0}
@ -1099,13 +1097,14 @@ CHANGEUSER
while : while :
do do
clear clear
if ping -q -c 1 -W 3 ${domain} >/dev/null if ssh ${username}@${domain} -p ${ssh_port} exit
then then
sleep 1 echo -e '\e[1m## Run "~/dhparam" upon logging in\n\e[0m'
ssh ${username}@${domain} -p ${ssh_port} ssh ${username}@${domain} -p ${ssh_port}
break break
else
sleep 1
fi fi
sleep 1
done\n" done\n"
. ~/.bashrc . ~/.bashrc