Script

Yes, Exactly, I need a rollback condition to remove those three files and go back to ,y script1.py. I’m kinda stuck on the logic. Could you give me an example how to modify the script module please, if you are okay with it.

You just need to add the logic into the “ArtifactRollback” portion of the case statement that @lluiscampos posted above. You probably also need to add logic into the “ArtifactInstall” state to actually backup the current files to somewhere persistent.

Drew

Sure, I’ll give a try. I’m going to follow example from here, hope its similar https://docs.mender.io/2.3/devices/update-modules#power-loss