[Pkg-owncloud-commits] [owncloud] 53/79: Add warning for not existing CA bundle when updating
David Prévot
taffit at moszumanska.debian.org
Tue Sep 1 20:55:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 373d1b67b2871ce4f7e5ffc4fec3e564b0b0531f
Author: Lukas Reschke <lukas at owncloud.com>
Date: Wed Aug 19 15:03:33 2015 +0200
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.
---
lib/private/updater.php | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/private/updater.php b/lib/private/updater.php
index cba8743..f73fa8f 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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list