change hostmaster@ to webmaster@ for email in LE cli.ini

This commit is contained in:
Matthew Saunders Brown 2024-03-14 15:24:53 -07:00
parent fba36f1276
commit 3824e07b73

View File

@ -39,16 +39,6 @@ cp etc/letsencrypt/renewal-hooks/post/reload-services.sh /etc/letsencrypt/renewa
chmod 750 /etc/letsencrypt/renewal-hooks/post/reload-services.sh
chown root:root /etc/letsencrypt/renewal-hooks/post/reload-services.sh
echo
domain=`hostname -d`
if [ -n "$domain" ]; then
echo "email = hostmaster@$domain" >> /etc/letsencrypt/cli.ini
echo "Let's Encrypt email set to hostmaster@$domain"
else
echo "Server DNS domain name not set, Let's Encrypt email setting left unconfigured."
fi
echo
cp etc/apache2/conf-available/certbot.conf /etc/apache2/conf-available/certbot.conf
a2enmod --quiet proxy proxy_http
a2enconf --quiet certbot
@ -65,3 +55,12 @@ cp systemd/letsencrypt-* /usr/local/lib/systemd/system/
chmod 644 /usr/local/lib/systemd/system/letsencrypt-*
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"
else
echo "Server DNS domain name not set, Let's Encrypt email setting left unconfigured."
fi