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

[core] Create Backup Handler for Updates #1397

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michelroegl-brunner
Copy link
Member

@michelroegl-brunner michelroegl-brunner commented Jan 10, 2025

🛠️ Note:
We are meticulous about merging code into the main branch, so please understand that pull requests not meeting the project's standards may be rejected. It's never personal!
🎮 Note for game-related scripts: These have a lower likelihood of being merged.


✍️ Description

Provide a summary of the changes made and/or reference the issue being addressed.

This implements a mechanism to update the Application to a Tar-ball befor a Update is made. If the Update fails at a point where the error_handler() is called, the files will be restored.

To use this function you need to call backup_data in `update_script() in every AppName.sh. Also var_apppath needs to be set to the application path.


🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
  • New script (a fully functional and thoroughly tested script or set of scripts)

✅ Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)
  • Documentation updated (I have updated any relevant documentation)

📋 Additional Information (optional)

image

@michelroegl-brunner michelroegl-brunner added nice to have A change that is a nice to have maintenance Code maintenance or general upkeep of the project high risk A change that can affect many scripts labels Jan 10, 2025
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner January 10, 2025 12:56
@MickLesk MickLesk marked this pull request as draft January 10, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high risk A change that can affect many scripts maintenance Code maintenance or general upkeep of the project nice to have A change that is a nice to have
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant