Skip to content

Commit ef64cd3

Browse files
author
A. Täffner
committed
fixed a missing semikolon, colored the warning message
1 parent 3da0397 commit ef64cd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/update.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ function check_service_config_state($servicename, $detected_value) {
431431
else $current_state = 0;
432432

433433
if ($detected_value != $current_state) {
434-
$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)
434+
$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);
435435
if ($answer == 'yes') return $detected_value;
436436
else {
437-
if ($servicename == 'web_server') echo "If ISPConfig-Panel is installed on this Server we will configure the Web Server anyways but will not enable it in ISPConfig.\n";
437+
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";
438438
return $current_state;
439439
}
440440
} else return $current_state;

0 commit comments

Comments
 (0)