Skip to content

Commit 22509bb

Browse files
author
Marius Burkard
committed
- fixed path variables in vhost file for LE
1 parent efe7d9c commit 22509bb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,10 +1153,6 @@ function update($event_name, $data) {
11531153
$crt_file = $ssl_dir.'/'.$domain.'.crt';
11541154
$bundle_file = $ssl_dir.'/'.$domain.'.bundle';
11551155

1156-
$vhost_data['ssl_crt_file'] = $crt_file;
1157-
$vhost_data['ssl_key_file'] = $key_file;
1158-
$vhost_data['ssl_bundle_file'] = $bundle_file;
1159-
11601156
if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y') {
11611157
$domain = $data['new']['domain'];
11621158
if(substr($domain, 0, 2) === '*.') {
@@ -1174,6 +1170,10 @@ function update($event_name, $data) {
11741170
$bundle_file = $ssl_dir.'/'.$domain.'-le.bundle';
11751171
}
11761172

1173+
$vhost_data['ssl_crt_file'] = $crt_file;
1174+
$vhost_data['ssl_key_file'] = $key_file;
1175+
$vhost_data['ssl_bundle_file'] = $bundle_file;
1176+
11771177
//* Generate Let's Encrypt SSL certificat
11781178
if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y' && ( // ssl and let's encrypt is active
11791179
($data['old']['ssl'] == 'n' || $data['old']['ssl_letsencrypt'] == 'n') // we have new let's encrypt configuration

server/plugins-available/nginx_plugin.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,10 +1223,6 @@ function update($event_name, $data) {
12231223
$csr_file = $ssl_dir.'/'.$domain.'.csr';
12241224
$crt_file = $ssl_dir.'/'.$domain.'.crt';
12251225

1226-
$vhost_data['ssl_crt_file'] = $crt_file;
1227-
$vhost_data['ssl_key_file'] = $key_file;
1228-
$vhost_data['ssl_bundle_file'] = $bundle_file;
1229-
12301226
$tpl->setVar('ssl_letsencrypt', "n");
12311227

12321228
if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y') {
@@ -1246,6 +1242,10 @@ function update($event_name, $data) {
12461242
$bundle_file = $ssl_dir.'/'.$domain.'-le.bundle';
12471243
}
12481244

1245+
$vhost_data['ssl_crt_file'] = $crt_file;
1246+
$vhost_data['ssl_key_file'] = $key_file;
1247+
$vhost_data['ssl_bundle_file'] = $bundle_file;
1248+
12491249
//* Generate Let's Encrypt SSL certificat
12501250
if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y' && ( // ssl and let's encrypt is active
12511251
($data['old']['ssl'] == 'n' || $data['old']['ssl_letsencrypt'] == 'n') // we have new let's encrypt configuration

0 commit comments

Comments
 (0)