diff --git a/install.sh b/install.sh index 6f1dd62..d450d4b 100755 --- a/install.sh +++ b/install.sh @@ -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