fix(vikon): keep ZIP and extracted files in temp after update
This commit is contained in:
@@ -47,7 +47,6 @@ class UpdateCoreAction
|
||||
$accessToken
|
||||
);
|
||||
|
||||
if (File::exists($tempPath)) File::deleteDirectory($tempPath);
|
||||
File::makeDirectory($tempPath, 0755, true, true);
|
||||
|
||||
$zipFile = $tempPath . '/module.zip';
|
||||
@@ -60,8 +59,6 @@ class UpdateCoreAction
|
||||
throw new \RuntimeException('Запрещённые файлы: ' . implode(', ', $blocked));
|
||||
}
|
||||
|
||||
File::delete($zipFile);
|
||||
|
||||
$extractedDirs = File::directories($tempPath);
|
||||
$syncSource = $extractedDirs[0] ?? $tempPath;
|
||||
File::makeDirectory($modulePath, 0755, true, true);
|
||||
|
||||
Reference in New Issue
Block a user