Skip to content

Commit 76de27a

Browse files
Merge pull request #28672 from owncloud/certman-updatetime
Prevent cert manager to access FS before an upgrade
2 parents 3b0f072 + 833eb96 commit 76de27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Http/Client/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function setDefaultOptions() {
6969
// If the instance is not yet setup we need to use the static path as
7070
// $this->certificateManager->getAbsoluteBundlePath() tries to instantiiate
7171
// a view
72-
if ($this->config->getSystemValue('installed', false)) {
72+
if ($this->config->getSystemValue('installed', false) && !\OCP\Util::needUpgrade()) {
7373
$this->client->setDefaultOption('verify', $this->certificateManager->getAbsoluteBundlePath(null));
7474
} else {
7575
$this->client->setDefaultOption('verify', \OC::$SERVERROOT . '/resources/config/ca-bundle.crt');

0 commit comments

Comments
 (0)