Skip to content

Commit b8610bb

Browse files
author
ncomputers.org
committed
mkdir for letsencrypt
1 parent 635f4f8 commit b8610bb

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/',755,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)