fix path to le cert
This commit is contained in:
parent
cc52229fb3
commit
bebbb8ac1f
|
@ -82,7 +82,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-authnz-
|
|||
fqdn=`hostname -f`
|
||||
vhostdomain=`hostname -d`
|
||||
cp etc/apache2/sites-available/* /etc/apache2/sites-available/
|
||||
sed -i "s|ssl-cert-snakeoil.pem|$fqdn.pem|g" /etc/apache2/sites-available/*.conf
|
||||
sed -i "s|/etc/ssl/certs/ssl-cert-snakeoil.pem|/etc/ssl/letsencrypt/$fqdn.pem|g" /etc/apache2/sites-available/*.conf
|
||||
chmod 644 /etc/apache2/sites-available/*.conf
|
||||
chown root:root /etc/apache2/sites-available/*.conf
|
||||
sed -i "s|webmaster@localhost|webmaster@$fqdn|g" /etc/apache2/sites-available/*.conf
|
||||
|
|
Loading…
Reference in New Issue
Block a user