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