From 03c2296a7ad80d1e188c6d5c22198b4e4fb9b31a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 1 Jul 2022 02:44:36 +0200 Subject: [PATCH] Fix removal --- scripts/remove | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index 8528898..1e1c42b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -56,10 +56,9 @@ ynh_remove_logrotate #================================================= ynh_script_progression --message="Removing the MongoDB database..." -ynh_mongo_exec --command="printjson(rs.remove())" --eval ynh_replace_string --match_string="engine: wiredTiger" --replace_string="# engine:" --target_file=$MONGO_CE_CONFIG ynh_replace_string --match_string="replication:" --replace_string="#replication:" --target_file=$MONGO_CE_CONFIG -ynh_replace_string --match_string=" replSetName: rs01" --replace_string="" --target_file=$MONGO_CE_CONFIG +ynh_replace_string --match_string=" replSetName: rs01" --replace_string="" --target_file=$MONGO_CE_CONFIG ynh_systemd_action --service_name=$MONGO_CE_SERVICENAME --action=restart