diff --git a/install.sh b/install.sh index fe6a9ba..d674162 100755 --- a/install.sh +++ b/install.sh @@ -57,10 +57,11 @@ systemctl daemon-reload systemctl enable --now letsencrypt-deploy.path echo -domain=`hostname -d` -if [ -n "$domain" ]; then - echo "email = webmaster@$domain" >> /etc/letsencrypt/cli.ini - echo "Let's Encrypt email set to webmaster@$domain" +fqdn=`hostname -f` +if [ -n "$fqdn" ]; then + echo "email = webmaster@$fqdn" >> /etc/letsencrypt/cli.ini + echo "Let's Encrypt email set to webmaster@$fqdn" + echo "This can be changed by editing /etc/letsencrypt/cli.ini." else echo "Server DNS domain name not set, Let's Encrypt email setting left unconfigured." fi