Commit 5cfd5d34 authored by Till Brehm's avatar Till Brehm

Bugfix for wrong Letsencrypt symlinks in relative symlink mode.

parent d0e3363c
......@@ -3421,6 +3421,7 @@ class apache2_plugin {
// Add ($cnt_to-1) number of "../" elements to left side of $cfrom
for ($c = 0; $c < (count($a2)-1); $c++) { $cfrom = '../'.$cfrom; }
if(strstr($to,'/etc/letsencrypt/archive/')) $to = str_replace('/etc/letsencrypt/archive/','/etc/letsencrypt/live/',$to);
return symlink($cfrom, $to);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment