diff --git a/autopatches/patches/delete-log-removal/patch.sh b/autopatches/patches/delete-log-removal/patch.sh new file mode 100644 index 0000000..dda9574 --- /dev/null +++ b/autopatches/patches/delete-log-removal/patch.sh @@ -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 diff --git a/autopatches/patches/delete-log-removal/pr_body.md b/autopatches/patches/delete-log-removal/pr_body.md new file mode 100644 index 0000000..704d4a6 --- /dev/null +++ b/autopatches/patches/delete-log-removal/pr_body.md @@ -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. diff --git a/autopatches/patches/delete-log-removal/pr_title.md b/autopatches/patches/delete-log-removal/pr_title.md new file mode 100644 index 0000000..8bfe3c6 --- /dev/null +++ b/autopatches/patches/delete-log-removal/pr_title.md @@ -0,0 +1 @@ +Do not delete logs on app removal