Skip to content

Commit 5cfd5d3

Browse files
author
Till Brehm
committed
Bugfix for wrong Letsencrypt symlinks in relative symlink mode.
1 parent d0e3363 commit 5cfd5d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,6 +3421,7 @@ public function create_relative_link($f, $t) {
34213421

34223422
// Add ($cnt_to-1) number of "../" elements to left side of $cfrom
34233423
for ($c = 0; $c < (count($a2)-1); $c++) { $cfrom = '../'.$cfrom; }
3424+
if(strstr($to,'/etc/letsencrypt/archive/')) $to = str_replace('/etc/letsencrypt/archive/','/etc/letsencrypt/live/',$to);
34243425

34253426
return symlink($cfrom, $to);
34263427
}

0 commit comments

Comments
 (0)