pi-top / pi-topOS-Web-Portal

React / Python application for providing a web-based interface to pi-topOS.
1 stars 1 forks source link

Replace `pt-os-updater` with web portal's OS updater #27

Open m-roberts opened 3 years ago

m-roberts commented 3 years ago

Currently the OS updater uses a systemd service that runs on each boot. It checks /etc/pi-top/pt-os-updater/last_checked_date to see if a day has passed, before deciding if the user should receive a notification that contains the action command to start the update in it.

This new system should be robust and easy to test with confidence. Therefore, I propose for a first version:

Notably, we drop the config file for 'last checked date' until we build a better system for the web portal to handle how it checks for updates. This is likely to grow to encompass many different use cases:

Some thought should be given to the scope of the use-cases and an appropriate configuration pattern should be chosen.

Possibly we can consider some of the following:

m-roberts commented 3 years ago

Note that this needs to have identical UX to the previous OS updater - particularly use of:

/tmp/pt-firmware-updater.ready
/tmp/pt-firmware-updater.extend-timeout