From a822a30725d3a4b160e1d156d7edc412c7b59a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 11:36:21 +0200 Subject: [PATCH] Remove the log config but not the log --- scripts/remove | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 038dd17..68acc66 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,6 +29,10 @@ done # Remove the dedicated NGINX config ynh_remove_nginx_config +# Remove the app-specific logrotate config +ynh_remove_logrotate + + # Remove a database if it exists, along with the associated user for db_name in "${MONGO_DB_LIST[@]}"; do ynh_mongo_remove_db --db_user=$db_user --db_name="dontCode$tenant$db_name" @@ -39,9 +43,6 @@ ynh_remove_mongo _remove_restart_script_and_sudoers -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - #================================================= # END OF SCRIPT #=================================================