Fix 3.8.4a2 migration patch

This commit is contained in:
Nicolas Le Goff
2014-05-05 09:55:24 +02:00
parent c56fc230ab
commit f5a97091eb

View File

@@ -67,6 +67,12 @@ class patch_384alpha2a implements patchInterface
$uniqid = md5(implode('-', $chunks));
$fs->rename($file->getRealPath(), $app['root.path'].'/config/status/' . $uniqid . '-' . $suffix);
if ($fs->exists($app['root.path'] . '/www/custom/status/' . $file->getFileName())) {
$fs->remove($app['root.path'] . '/www/custom/status/' . $file->getFileName());
}
}
$app['filesystem']->mirror($app['root.path'] . '/config/status/', $app['root.path'] . '/www/custom/status/');
}
}