diff --git a/install/install.php b/install/install.php index ae0da7e65cd0436a2fe4d30d3985cc6f5d7f564d..f99a99d9ee679328759b0eeeace844a3dcaee142 100644 --- a/install/install.php +++ b/install/install.php @@ -553,9 +553,10 @@ if($install_mode == 'standard' || strtolower($inst->simple_query('Install ISPCon } // Create SSL certs for non-webserver(s)? -if(!file_exists(/usr/local/ispconfig/interface/ssl/ispserver.crt)) { - if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') +if(!file_exists('/usr/local/ispconfig/interface/ssl/ispserver.crt')) { + if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') { $inst->make_ispconfig_ssl_cert(); + } } $inst->raiseEvent('install_ispconfig::before'); diff --git a/install/update.php b/install/update.php index 8e5a1ff9327fe9a476e40136334e164e8b4d6125..03c203d2bf223ebc9da7cdf7039d0b49fb259ba5 100644 --- a/install/update.php +++ b/install/update.php @@ -504,9 +504,10 @@ if ($inst->install_ispconfig_interface) { } // Create SSL certs for non-webserver(s)? -if(!file_exists(/usr/local/ispconfig/interface/ssl/ispserver.crt)) { - if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') +if(!file_exists('/usr/local/ispconfig/interface/ssl/ispserver.crt')) { + if(strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') { $inst->make_ispconfig_ssl_cert(); + } } $inst->raiseEvent('install_ispconfig::before');