Skip to content

Commit adf3d18

Browse files
author
Till Brehm
committed
Merge branch 'mkdirlets' into 'master'
mkdir for letsencrypt this folder is needed by **file_put_contents** when **.well-known** is clean See merge request !567
2 parents 0c37024 + 9b3d87b commit adf3d18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,12 +1218,13 @@ function update($event_name, $data) {
12181218

12191219
// prevent duplicate
12201220
$temp_domains = array_unique($temp_domains);
1221-
1221+
12221222
// check if domains are reachable to avoid letsencrypt verification errors
12231223
$le_rnd_file = uniqid('le-') . '.txt';
12241224
$le_rnd_hash = md5(uniqid('le-', true));
1225+
mkdir('/usr/local/ispconfig/interface/acme/.well-known/acme-challenge/',0750,true);
12251226
file_put_contents('/usr/local/ispconfig/interface/acme/.well-known/acme-challenge/' . $le_rnd_file, $le_rnd_hash);
1226-
1227+
12271228
$le_domains = array();
12281229
foreach($temp_domains as $temp_domain) {
12291230
$le_hash_check = trim(@file_get_contents('http://' . $temp_domain . '/.well-known/acme-challenge/' . $le_rnd_file));

0 commit comments

Comments
 (0)