diff --git a/modules/system/classes/UpdateManager.php b/modules/system/classes/UpdateManager.php index 13b7f35ca..de8c5c823 100644 --- a/modules/system/classes/UpdateManager.php +++ b/modules/system/classes/UpdateManager.php @@ -449,8 +449,6 @@ class UpdateManager throw new ApplicationException(Lang::get('system::lang.zip.extract_failed', ['file' => $filePath])); } - @unlink($filePath); - // Database may fall asleep after this long process Db::reconnect(); @@ -458,6 +456,8 @@ class UpdateManager 'system::core.hash' => $hash, 'system::core.build' => $build ]); + + @unlink($filePath); } //