From cde1917d97281b7e162719de477bf4b65a823491 Mon Sep 17 00:00:00 2001 From: Alexandre Alouit Date: Mon, 30 Nov 2015 16:03:47 +0100 Subject: bugfix --- src/server/plugins-available/apache2_plugin.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/plugins-available/apache2_plugin.inc.php') diff --git a/src/server/plugins-available/apache2_plugin.inc.php b/src/server/plugins-available/apache2_plugin.inc.php index 4dbbd78..1b28759 100755 --- a/src/server/plugins-available/apache2_plugin.inc.php +++ b/src/server/plugins-available/apache2_plugin.inc.php @@ -953,13 +953,13 @@ class apache2_plugin { //* Generate Let's Encrypt SSL certificat if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y') { //* be sure to have good domain - $lddomain = (string) "--domains $domain"; + $lddomain = (string) "$domain"; if($data['new']['subdomain'] == "www" OR $data['new']['subdomain'] == "*") { $lddomain .= (string) " --domains www." . $domain; } - $crt_tmp_file = "/etc/letsencrypt/live/".$lddomain."/cert.pem"; - $key_tmp_file = "/etc/letsencrypt/live/".$lddomain."/privkey.pem"; + $crt_tmp_file = "/etc/letsencrypt/live/".$domain."/cert.pem"; + $key_tmp_file = "/etc/letsencrypt/live/".$domain."/privkey.pem"; $webroot = $data['new']['document_root']."/web"; //* check if we have already a Let's Encrypt cert -- cgit v1.2.3