add autopatch: do not remove logs on app removal
This commit is contained in:
parent
a21f722f7e
commit
839c6b9992
3 changed files with 9 additions and 0 deletions
5
autopatches/patches/delete-log-removal/patch.sh
Normal file
5
autopatches/patches/delete-log-removal/patch.sh
Normal file
|
@ -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
autopatches/patches/delete-log-removal/pr_body.md
Normal file
3
autopatches/patches/delete-log-removal/pr_body.md
Normal file
|
@ -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
autopatches/patches/delete-log-removal/pr_title.md
Normal file
1
autopatches/patches/delete-log-removal/pr_title.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Do not delete logs on app removal
|
Loading…
Reference in a new issue