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/'); } }