summaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-13 17:27:47 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-13 17:27:47 +0000
commitcd2f75fdad6629f850bb07f07cd45e04d75de97d (patch)
treee2403eff902510e24ab0c7539d96e7ca9038e849 /lib/migrate.php
parent0f3eebbbd95b75e3dfe8f9322d8fd486925ac54a (diff)
downloadnextcloud-server-cd2f75fdad6629f850bb07f07cd45e04d75de97d.tar.gz
nextcloud-server-cd2f75fdad6629f850bb07f07cd45e04d75de97d.zip
Use data dir from config.php
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;
}
}