From f5a97091eb8c89f362c6eeaf7a49202894730f71 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 5 May 2014 09:55:24 +0200 Subject: [PATCH] Fix 3.8.4a2 migration patch --- lib/classes/patch/384alpha2a.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/classes/patch/384alpha2a.php b/lib/classes/patch/384alpha2a.php index c92da4c6a6..8fa47afb7f 100644 --- a/lib/classes/patch/384alpha2a.php +++ b/lib/classes/patch/384alpha2a.php @@ -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/'); } }