Archive unlink comes last to allow retry
If the file is deleted and subsequent logic fails, clicking Retry is a show stopper
This commit is contained in:
parent
e32e8d1390
commit
5346617a91
|
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue