mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix: Remove ini and pdo check in checkServer
ini check is already in setupchecks and not needed that often, pdo is already checked above so it makes no sense. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
7cd55a3306
commit
6cb8e5442a
1 changed files with 0 additions and 24 deletions
|
|
@ -495,15 +495,8 @@ class OC_Util {
|
|||
'curl_init' => 'cURL',
|
||||
'openssl_verify' => 'OpenSSL',
|
||||
],
|
||||
'defined' => [
|
||||
'PDO::ATTR_DRIVER_NAME' => 'PDO'
|
||||
],
|
||||
'ini' => [
|
||||
'default_charset' => 'UTF-8',
|
||||
],
|
||||
];
|
||||
$missingDependencies = [];
|
||||
$invalidIniSettings = [];
|
||||
|
||||
$iniWrapper = \OC::$server->get(IniGetWrapper::class);
|
||||
foreach ($dependencies['classes'] as $class => $module) {
|
||||
|
|
@ -516,16 +509,6 @@ class OC_Util {
|
|||
$missingDependencies[] = $module;
|
||||
}
|
||||
}
|
||||
foreach ($dependencies['defined'] as $defined => $module) {
|
||||
if (!defined($defined)) {
|
||||
$missingDependencies[] = $module;
|
||||
}
|
||||
}
|
||||
foreach ($dependencies['ini'] as $setting => $expected) {
|
||||
if (strtolower($iniWrapper->getString($setting)) !== strtolower($expected)) {
|
||||
$invalidIniSettings[] = [$setting, $expected];
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($missingDependencies as $missingDependency) {
|
||||
$errors[] = [
|
||||
|
|
@ -534,13 +517,6 @@ class OC_Util {
|
|||
];
|
||||
$webServerRestart = true;
|
||||
}
|
||||
foreach ($invalidIniSettings as $setting) {
|
||||
$errors[] = [
|
||||
'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], var_export($setting[1], true)]),
|
||||
'hint' => $l->t('Adjusting this setting in php.ini will make Nextcloud run again')
|
||||
];
|
||||
$webServerRestart = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The mbstring.func_overload check can only be performed if the mbstring
|
||||
|
|
|
|||
Loading…
Reference in a new issue