chore(certmanager): check domain name has ip, then proceed

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-04-14 16:26:17 +02:00
parent 6f5bda117c
commit 87049b4633

View file

@ -13,6 +13,11 @@ fatal()
exit 1
}
read -p "enter openreplay domain name: " domain
nslookup domain > /dev/null || {
fatal "Domain name doesn't have ip associated with it. Please check your DNS record."
}
# Reading email address for ssl certificate
[[ -z $EMAIL_ADDRESS ]] && {
read -p "Enter your email address for letsencrypt certificate: " EMAIL_ADDRESS