mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #18430 from owncloud/add-warning-ca-bundle
Add warning for not existing CA bundle when updating
This commit is contained in:
commit
6900dbdaff
1 changed files with 7 additions and 0 deletions
|
|
@ -271,6 +271,13 @@ class Updater extends BasicEmitter {
|
|||
throw new \Exception($e->getMessage());
|
||||
}
|
||||
|
||||
// FIXME: Some users do not upload the new ca-bundle.crt, let's catch this
|
||||
// in the update. For a newer release we shall use an integrity check after
|
||||
// the update.
|
||||
if(!file_exists(\OC::$configDir .'/ca-bundle.crt')) {
|
||||
throw new \Exception('Please upload the ca-bundle.crt file into the \'config\' directory.');
|
||||
}
|
||||
|
||||
// create empty file in data dir, so we can later find
|
||||
// out that this is indeed an ownCloud data directory
|
||||
// (in case it didn't exist before)
|
||||
|
|
|
|||
Loading…
Reference in a new issue