Skip to content

Commit

Permalink
add autopatch: do not remove logs on app removal
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed Jun 21, 2024
1 parent e38c740 commit 5b69ad9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
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

0 comments on commit 5b69ad9

Please sign in to comment.