change account email to use fqdn, with note about how to change

This commit is contained in:
Matthew Saunders Brown 2024-03-26 14:35:42 -07:00
parent 6cde966f6e
commit 399709f2b3
1 changed files with 5 additions and 4 deletions

View File

@ -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