diff --git a/install.sh b/install.sh index a275bf8..f8943c1 100755 --- a/install.sh +++ b/install.sh @@ -48,6 +48,18 @@ ask_envs() { break; fi; done + + echo "Please add the letsencrypt mail address:"; + while read -r LETSENCRYPT_MAIL; do + if [ "$LETSENCRYPT_MAIL" != "" ]; then + if [ "$(echo "$LETSENCRYPT_MAIL" | grep '@')" != "" ]; then + if [ "$(echo "$LETSENCRYPT_MAIL" | grep '\.')" != "" ]; then + break; + fi; + fi; + fi; + echo "Invalid email address."; + done fi echo "Cron? (Y/n)"; @@ -58,17 +70,6 @@ ask_envs() { CRON="yes"; fi - echo "Please add the letsencrypt mail address:"; - while read -r LETSENCRYPT_MAIL; do - if [ "$LETSENCRYPT_MAIL" != "" ]; then - if [ "$(echo "$LETSENCRYPT_MAIL" | grep '@')" != "" ]; then - if [ "$(echo "$LETSENCRYPT_MAIL" | grep '\.')" != "" ]; then - break; - fi; - fi; - fi; - echo "Invalid email address."; - done } discover_services() {