diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-04-08 19:16:03 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-04-08 19:16:03 +0000 |
commit | 8e188cd96f4c1f19664aa5ee870420a26d230c5c (patch) | |
tree | a7c3ea2ad2d36bd06dd898f2cee4fa44adb23ecb /lib/migrate.php | |
parent | ecc596534a9d6d6faffc6038a5bce61ebdf59781 (diff) | |
download | nextcloud-server-8e188cd96f4c1f19664aa5ee870420a26d230c5c.tar.gz nextcloud-server-8e188cd96f4c1f19664aa5ee870420a26d230c5c.zip |
Copy over all file app data for imported user
Diffstat (limited to 'lib/migrate.php')
-rw-r--r-- | lib/migrate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/migrate.php b/lib/migrate.php index a8a5e581c3a..dff3abe9e93 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -246,13 +246,13 @@ class OC_Migrate{ // Emit the post_createUser hook (password is already hashed, will cause problems OC_Hook::emit( "OC_User", "post_createUser", array( "uid" => self::$uid, "password" => $json->hash )); // Make the new users data dir - $path = $datadir . '/' . self::$uid . '/files/'; + $path = $datadir . '/' . self::$uid; if( !mkdir( $path, 0755, true ) ){ OC_Log::write( 'migration', 'Failed to create users data dir: '.$path, OC_Log::ERROR ); return json_encode( array( 'success' => false ) ); } // Copy data - if( !self::copy_r( $extractpath . $json->exporteduser . '/files', $datadir . '/' . self::$uid . '/files' ) ){ + if( !self::copy_r( $extractpath . $json->exporteduser, $datadir . '/' . self::$uid ) ){ return json_encode( array( 'success' => false ) ); } // Import user app data |