|
|
@ -43,7 +43,7 @@ $RCI->load_config();
|
|
|
|
if ($RCI->configured) {
|
|
|
|
if ($RCI->configured) {
|
|
|
|
$success = true;
|
|
|
|
$success = true;
|
|
|
|
|
|
|
|
|
|
|
|
if (($messages = $RCI->check_config()) || $RCI->legacy_config) {
|
|
|
|
if (($messages = $RCI->check_config($opts['version'])) || $RCI->legacy_config) {
|
|
|
|
$success = false;
|
|
|
|
$success = false;
|
|
|
|
$err = 0;
|
|
|
|
$err = 0;
|
|
|
|
|
|
|
|
|
|
|
@ -56,8 +56,6 @@ if ($RCI->configured) {
|
|
|
|
echo "- '" . $msg['prop'] . "' was replaced by '" . $msg['replacement'] . "'\n";
|
|
|
|
echo "- '" . $msg['prop'] . "' was replaced by '" . $msg['replacement'] . "'\n";
|
|
|
|
$err++;
|
|
|
|
$err++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo "\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// list obsolete config options (just a notice)
|
|
|
|
// list obsolete config options (just a notice)
|
|
|
@ -70,8 +68,6 @@ if ($RCI->configured) {
|
|
|
|
echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n";
|
|
|
|
echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n";
|
|
|
|
$err++;
|
|
|
|
$err++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo "\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$err && $RCI->legacy_config) {
|
|
|
|
if (!$err && $RCI->legacy_config) {
|
|
|
@ -137,6 +133,15 @@ if ($RCI->configured) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// list of config options with changed default (just a notice)
|
|
|
|
|
|
|
|
if (!empty($messages['defaults'])) {
|
|
|
|
|
|
|
|
echo "WARNING: Changed defaults (These config options have new default values):\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($messages['defaults'] as $opt) {
|
|
|
|
|
|
|
|
echo "- '{$opt}'\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// check dependencies based on the current configuration
|
|
|
|
// check dependencies based on the current configuration
|
|
|
|
if (is_array($messages['dependencies'])) {
|
|
|
|
if (is_array($messages['dependencies'])) {
|
|
|
|
echo "WARNING: Dependency check failed!\n";
|
|
|
|
echo "WARNING: Dependency check failed!\n";
|
|
|
|