upgrade cleanup

This commit is contained in:
Yuri Kuznetsov
2020-10-09 14:58:34 +03:00
parent 32aaaa350e
commit d8f58dcc1d
+10
View File
@@ -51,11 +51,21 @@ class AfterUpgrade
protected function cleanupFiles()
{
$fileManager = $this->container->get('fileManager');
$fileList = [
'application/Espo/Core/Loaders/ClientManager.php',
'client/res/templates/record/panels/default-side.tpl',
'application/Espo/Resources/templates/noteEmailRecieved',
];
foreach ($fileList as $file) {
if (is_dir($file)) {
$fileManager->removeInDir($file, true);
continue;
}
if (!file_exists($file)) {
continue;
}