Skip to content

Commit d74f0ad

Browse files
committed
Update update.php to fix the condition for non-webservers to check for ispserver.crt file instead of whether apache or nginx is installed since apache might be installed together with mailman.
1 parent 27e0c32 commit d74f0ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

install/update.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,10 @@
524524
}
525525
}
526526

527-
// Create SSL certs for non-webserver(s) ?
528-
if(($conf['apache']['installed'] && $conf['apache']['installed']) == false) {
529-
if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') {
527+
// Create SSL certs for non-webserver(s)?
528+
if(!file_exists(/usr/local/ispconfig/interface/ssl/ispserver.crt)) {
529+
if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y')
530530
$inst->make_ispconfig_ssl_cert();
531-
}
532531
}
533532

534533
$inst->install_ispconfig();

0 commit comments

Comments
 (0)