Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller upgrade process #39

Open
arist0v opened this issue Jun 21, 2022 · 3 comments
Open

Controller upgrade process #39

arist0v opened this issue Jun 21, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@arist0v
Copy link
Collaborator

arist0v commented Jun 21, 2022

Add a process to update the contorller to the latest version without having to do a full reinstall

(like OTA update and stuff)

@arist0v arist0v added the enhancement New feature or request label Jun 21, 2022
@flatsiedatsie
Copy link
Collaborator

flatsiedatsie commented Jun 21, 2022

Already exists. An addon (Power Settings) could do an upgrade.

  • Current version is stored in /boot/candle_version.txt
  • Power settings addon creates a menu option "upgrade", which can be found under settings.

candle_update

  • When an upgrade is started, power Settings addon will create a /boot/bootup_actions.sh file. That shell script will be executed at boot if it exists. The script can then download a new version of /home/pi/webthings folder and switch them out. It can also do things like "apt-get upgrade". The idea is that the upgrade script can check what the current version is, and upgrade parts based on that.
  • While upgrading a different bootup image (/boot/splash_updating.png) is shown on the display.
  • When upgrading is complete, the script deletes itself and reboot the system again.
  • Upgrade log is kept in /home/pi/.webthings/candle.log

When in developer mode, "manual upgrade" is already available under the settings menu. It's an example of a simple script that does a system upgrade.

@arist0v
Copy link
Collaborator Author

arist0v commented Jun 21, 2022

Can you document the process here please

@flatsiedatsie
Copy link
Collaborator

See above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants