File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments