Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-19 16:03:33 +0300
committerLukas Reschke <lukas@owncloud.com>2015-08-19 16:03:33 +0300
commit40b87b13941f3f0e0068070166bb2cf628189179 (patch)
treea2724087ae270f7f5776e34dd0a20b265915ceed /lib/private/updater.php
parent5fd36d017ecdbce61dcf1c67ae04c8c0be81a4bf (diff)
Add warning for not existing CA bundle when updating
For newer releases we shall use an integrity check. But that's a good alternative for now.
Diffstat (limited to 'lib/private/updater.php')
-rw-r--r--lib/private/updater.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php
index cba87434165..f73fa8ff655 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -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)