summaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index 1be229d8fdd..a6a6432d0de 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -447,10 +447,11 @@ class OC_Migrate{
OC_Log::write('migration', 'Failed to cleanup after migration', OC_Log::ERROR);
return false;
}
+ $userdatadir = OC_Config::getValue( 'datadirectory' ) . '/' . self::$uid;
// Remove migration.db
- unlink( OC::$SERVERROOT . '/data/' . self::$uid . '/migration.db' );
+ unlink( $userdatadir . '/migration.db' );
// Remove exportinfo.json
- unlink( OC::$SERVERROOT . '/data/' . self::$uid . '/exportinfo.json' );
+ unlink( $userdatadir . '/exportinfo.json' );
return true;
}
}