change hostmaster@ to webmaster@ for email in LE cli.ini
This commit is contained in:
parent
fba36f1276
commit
3824e07b73
19
install.sh
19
install.sh
|
@ -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
|
chmod 750 /etc/letsencrypt/renewal-hooks/post/reload-services.sh
|
||||||
chown root:root /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
|
cp etc/apache2/conf-available/certbot.conf /etc/apache2/conf-available/certbot.conf
|
||||||
a2enmod --quiet proxy proxy_http
|
a2enmod --quiet proxy proxy_http
|
||||||
a2enconf --quiet certbot
|
a2enconf --quiet certbot
|
||||||
|
@ -65,3 +55,12 @@ cp systemd/letsencrypt-* /usr/local/lib/systemd/system/
|
||||||
chmod 644 /usr/local/lib/systemd/system/letsencrypt-*
|
chmod 644 /usr/local/lib/systemd/system/letsencrypt-*
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now letsencrypt-deploy.path
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user