summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 09:53:31 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-05 11:00:16 +0200
commit92dc9e6899ac9aa80f49c796ff7ccf1b1fa70842 (patch)
treef32d90bbc2dde61c5444e5a871f95468894afbcc /lib/private/Repair.php
parent6807cb684f64587f1747b5168eb42e5172c889eb (diff)
downloadnextcloud-server-92dc9e6899ac9aa80f49c796ff7ccf1b1fa70842.tar.gz
nextcloud-server-92dc9e6899ac9aa80f49c796ff7ccf1b1fa70842.zip
Avatar migration step
* Skip move avatar if avatars disabled Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php
index bf441d03c35..0af1dc9cc74 100644
--- a/lib/private/Repair.php
+++ b/lib/private/Repair.php
@@ -36,6 +36,7 @@ use OC\Repair\CleanTags;
use OC\Repair\Collation;
use OC\Repair\DropOldJobs;
use OC\Repair\MoveUpdaterStepFile;
+use OC\Repair\NC11\MoveAvatars;
use OC\Repair\OldGroupMembershipShares;
use OC\Repair\RemoveGetETagEntries;
use OC\Repair\RemoveOldShares;
@@ -149,6 +150,12 @@ class Repair implements IOutput{
\OC::$server->getGroupManager()
),
new MoveUpdaterStepFile(\OC::$server->getConfig()),
+ new MoveAvatars(
+ \OC::$server->getUserManager(),
+ \OC::$server->getRootFolder(),
+ \OC::$server->getAppDataDir('avatar'),
+ \OC::$server->getSystemConfig()
+ ),
];
}