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:
Samuel Georges 2017-07-29 15:18:46 +10:00
parent e32e8d1390
commit 5346617a91
1 changed files with 2 additions and 2 deletions

View File

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