Skip to content

Commit f93c382

Browse files
committed
Update installer_base.lib.php to change if (!@is_dir($le_live_dir) && ($svr_ip != $dns_ip)) to else.
1 parent 497136b commit f93c382

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,8 @@ public function make_ispconfig_ssl_cert() {
24272427
else
24282428
exec("certbot certonly --authenticator standalone -d $hostname");
24292429
}
2430+
// TODO: To implement webroot instead of standalone via
2431+
// probably ispconfig vhost to provide for port 80 && 443
24302432

24312433
// Define and check ISPConfig SSL folder
24322434
$install_dir = $conf['ispconfig_install_dir'];
@@ -2453,9 +2455,8 @@ public function make_ispconfig_ssl_cert() {
24532455

24542456
// Build ispserver.pem file and chmod it
24552457
exec("cat $ssl_key_file $ssl_crt_file > $ssl_pem_file; chmod 600 $ssl_pem_file");
2456-
}
2457-
2458-
if (!@is_dir($le_live_dir) && ($svr_ip != $dns_ip)) {
2458+
2459+
} else {
24592460

24602461
// We can still use the old self-signed method
24612462
$ssl_pw = substr(md5(mt_rand()), 0, 6);

0 commit comments

Comments
 (0)