Skip to content

Commit 1fd891d

Browse files
author
Marius Burkard
committed
Merge branch 'patch-updater-detect-interface' into 'develop'
Disable install_ispconfig_interface when no webserver is present See merge request ispconfig/ispconfig3!1305
2 parents 5f3697a + 7df2500 commit 1fd891d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install/update.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,13 @@
361361
if($conf['apache']['installed'] == true){
362362
if(!is_file($conf['apache']['vhost_conf_dir'].'/ispconfig.vhost')) $inst->install_ispconfig_interface = false;
363363
}
364-
if($conf['nginx']['installed'] == true){
364+
elseif($conf['nginx']['installed'] == true){
365365
if(!is_file($conf['nginx']['vhost_conf_dir'].'/ispconfig.vhost')) $inst->install_ispconfig_interface = false;
366366
}
367+
else {
368+
// If neither webserver is installed then this can't be the server that hosts the ispconfig interface.
369+
$inst->install_ispconfig_interface = false;
370+
}
367371

368372
//** Shall the services be reconfigured during update
369373
$reconfigure_services_answer = $inst->simple_query('Reconfigure Services?', array('yes', 'no', 'selected'), 'yes','reconfigure_services');

0 commit comments

Comments
 (0)