From cc0114489b5dd57efa90bf9ff5da22bc614c972e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 27 Aug 2023 23:30:03 +0200 Subject: [PATCH] Update remove --- scripts/remove | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 7b007a9..b65581d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -61,7 +61,12 @@ ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mo # Remove a database if it exists, along with the associated user ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name -ynh_remove_mongo +#ynh_remove_mongo + +# Remove mongod service +yunohost service remove mongod +ynh_secure_remove --file="/var/lib/mongodb" +ynh_secure_remove --file="/var/log/mongodb" #================================================= # END OF SCRIPT