Visit IP if no domain provided

This commit is contained in:
Girish Ramakrishnan
2017-01-05 20:18:57 -08:00
committed by Johannes Zellner
parent 270a1f4b95
commit 8a0fe413ba

View File

@@ -200,10 +200,14 @@ while true; do
sleep 10
done
if [[ "${initBaseImage}" == "true" ]]; then
echo -e "\n\nRebooting this server now to let bootloader changes take effect.\n"
systemctl reboot
echo -e "\n\nRebooting this server now to let bootloader changes take effect.\n"
if [[ -n "${domain}" ]]; then
echo -e "Visit https://my.${domain} to finish setup once the server has rebooted.\n"
else
echo -e "Visit https://<IP> to finish setup once the server has rebooted.\n"
fi
echo -e "Visit https://my.${domain} to finish setup once the server has rebooted.\n"
if [[ "${initBaseImage}" == "true" ]]; then
systemctl reboot
fi