mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 12:30:40 -05:00
Merge pull request #46965 from nextcloud/backport/46353/stable29
[stable29] fix(setupchecks): Skip checking for OPcache settings if running checks from CLI
This commit is contained in:
commit
1d978005f7
1 changed files with 5 additions and 0 deletions
|
|
@ -131,6 +131,11 @@ class PhpOpcacheSetup implements ISetupCheck {
|
|||
}
|
||||
|
||||
public function run(): SetupResult {
|
||||
// Skip OPcache checks if running from CLI
|
||||
if (\OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
|
||||
return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
|
||||
}
|
||||
|
||||
[$level,$recommendations] = $this->getOpcacheSetupRecommendations();
|
||||
if (!empty($recommendations)) {
|
||||
return match($level) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue