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

View File

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