From e678c93f6a3d302cc3ea5e1451b7561a04ba2db2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?A=2E=20T=C3=A4ffner?= <darkalex@firesplash.de>
Date: Thu, 8 Sep 2016 10:34:17 +0200
Subject: [PATCH] restart webserver when panel is installed regardless of users
 choice... Further sall text change

---
 install/lib/update.lib.php | 2 +-
 install/update.php         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/lib/update.lib.php b/install/lib/update.lib.php
index c865c9fa88..70fcbb7fb0 100644
--- a/install/lib/update.lib.php
+++ b/install/lib/update.lib.php
@@ -434,7 +434,7 @@ function check_service_config_state($servicename, $detected_value) {
 		$answer = $inst->simple_query('Service \''.$servicename.'\' '.($detected_value ? 'has been' : 'has not been').' detected ('.($current_state ? 'strongly recommended, currently enabled' : 'currently disabled').') do you want to '.($detected_value ? 'enable and configure' : 'disable').' it? ', array('yes', 'no'), ($current_state ? 'yes' : 'no'), 'svc_detect_change_'.$servicename);
 		if ($answer == 'yes') return $detected_value;
 		else {
-			if ($servicename == 'web_server') echo "\033[0;33mWARNING: If ISPConfig-Panel is installed on this Server we will configure the Web Server anyways but will not enable it in ISPConfig.\033[0m\n\n";
+			if ($servicename == 'web_server') echo "\033[0;33mWARNING: If ISPConfig-Interface (Webfrontend) is installed on this Server we will configure the Web Server anyways but will not enable it in ISPConfig.\033[0m\n\n";
 			return $current_state;
 		}
 	} else return $current_state;
diff --git a/install/update.php b/install/update.php
index 0012b7ed86..ed5d79c09f 100644
--- a/install/update.php
+++ b/install/update.php
@@ -518,7 +518,7 @@ if($reconfigure_services_answer == 'yes') {
 		if($conf['dovecot']['installed'] == true && $conf['dovecot']['init_script'] != '') system($inst->getinitcommand($conf['dovecot']['init_script'], 'restart'));
 		if($conf['mailman']['installed'] == true && $conf['mailman']['init_script'] != '') system('nohup '.$inst->getinitcommand($conf['mailman']['init_script'], 'restart').' >/dev/null 2>&1 &');
 	}
-	if($conf['services']['web']) {
+	if($conf['services']['web'] || $inst->install_ispconfig_interface) {
 		if($conf['webserver']['server_type'] == 'apache' && $conf['apache']['init_script'] != '') system($inst->getinitcommand($conf['apache']['init_script'], 'restart'));
 		//* Reload is enough for nginx
 		if($conf['webserver']['server_type'] == 'nginx'){
-- 
GitLab