From 8a0fe413ba04fbfd5c82b26e4f2887948a4f31af Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 5 Jan 2017 20:18:57 -0800 Subject: [PATCH] Visit IP if no domain provided --- scripts/cloudron-setup | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index fb54bf0a9..fa3e92935 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -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:// 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