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

add autopatch: do not remove logs on app removal #2428

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/autopatches/patches/delete-log-removal/patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

sed -E "/(ynh_secure_remove|ynh_safe_rm|rm).*(\/var\/log\/)/d" -i scripts/remove

git add scripts/remove
3 changes: 3 additions & 0 deletions tools/autopatches/patches/delete-log-removal/pr_body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is an ***automated*** patch to fix the following:

Do not delete logs on app removal, else they will be erased if the app upgrade fails. This is handled by the core.
1 change: 1 addition & 0 deletions tools/autopatches/patches/delete-log-removal/pr_title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not delete logs on app removal