certification-tool icon indicating copy to clipboard operation
certification-tool copied to clipboard

Split auto update script

Open hiltonlima opened this issue 9 months ago • 0 comments

When running auto-update.sh the old version script is loaded into memory and even after updating the source code (on disk) the logic of the old script is executed.

To solve this problem we need to update the TH code to the new branch before executing the update. For this to be possible by calling just 1 script, it is necessary to break the auto-update into two different scripts.

1 - auto-update.sh: It will have the minimum base for updating (stop.sh and source code update)

2 - update.sh: Executes all necessary updates. This is updated in the previous step. Ensuring that the updated version script will always be executed.

This way, when calling the auto-update.sh script, we will have an execution of update.sh from the newest version.

hiltonlima avatar May 10 '24 18:05 hiltonlima