summaryrefslogtreecommitdiffstats
path: root/apps/encryption/appinfo/app.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-07 18:05:54 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-16 14:15:04 +0200
commite3d77c4b0181e2219f30f720ac7077b334210f5d (patch)
tree8d2042de13e0ff8036b92c2040e64c5774e2e6be /apps/encryption/appinfo/app.php
parent1a894bd0d8ab034f35dbb3b723dd195e7f66aab4 (diff)
downloadnextcloud-server-e3d77c4b0181e2219f30f720ac7077b334210f5d.tar.gz
nextcloud-server-e3d77c4b0181e2219f30f720ac7077b334210f5d.zip
add migration script from old encryption to new one
Diffstat (limited to 'apps/encryption/appinfo/app.php')
-rw-r--r--apps/encryption/appinfo/app.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/encryption/appinfo/app.php b/apps/encryption/appinfo/app.php
index 6bbf2113366..0e8ce56227b 100644
--- a/apps/encryption/appinfo/app.php
+++ b/apps/encryption/appinfo/app.php
@@ -24,6 +24,8 @@
namespace OCA\Encryption\AppInfo;
$app = new Application();
-$app->registerEncryptionModule();
-$app->registerHooks();
-$app->registerSettings();
+if (\OC::$server->getEncryptionManager()->isReady()) {
+ $app->registerEncryptionModule();
+ $app->registerHooks();
+ $app->registerSettings();
+}