nextcloud / updater

:arrows_counterclockwise: The updater app to keep your Nextcloud up-to-date
GNU Affero General Public License v3.0
45 stars 31 forks source link

Improve user experience of the Updater by changing order of operations (WIP/RFC) #525

Open joshtrichards opened 6 months ago

joshtrichards commented 6 months ago

e.g.

  1. checkForExpectedFilesAndFolders()
  2. checkWritePermissions()
  3. downloadUpdate()
  4. verifyIntegrity()
  5. extractDownload()
  6. createBackup() <---- moves here from step 3
  7. setMaintenanceMode()
  8. replaceEntryPoints()
  9. deleteOldFiles()
  10. moveNewVersionInPlace()
  11. setMaintenanceMode
  12. finalize

The current order is as follows:

https://github.com/nextcloud/updater/blob/4d660d83db17a6cc6ce8c28f4ce38fa19932d054/index.php#L1335-L1372

Other considerations:

joshtrichards commented 4 months ago

Related: #386