From fecffedd11496f51aa183103a8da313c78cb6f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 21 Apr 2024 12:03:55 +0200 Subject: [PATCH] Remove log only if purge are enabled --- scripts/remove | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 86f5fa6..5204395 100755 --- a/scripts/remove +++ b/scripts/remove @@ -56,7 +56,10 @@ if ynh_mysql_user_exists --user=$db_user; then fi ynh_package_autopurge monitorix -ynh_secure_remove --file=/var/log/"$app" ynh_secure_remove --file="$install_dir" +if [ "$YNH_APP_PURGE" -eq 1 ]; then + ynh_secure_remove --file=/var/log/"$app" +fi + ynh_script_progression --message="Removal of $app completed" --last