From 123122e8f159f39ca7c12a0e8f3dd2e131f0a846 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:36:46 +0100 Subject: [PATCH] Update remove --- scripts/remove | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/remove b/scripts/remove index 70bc030..3513a07 100755 --- a/scripts/remove +++ b/scripts/remove @@ -111,6 +111,9 @@ ynh_script_progression --message="Removing the MongoDB database..." # Remove a database if it exists, along with the associated user ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name +ynh_replace_string --match_string="replication:" --replace_string="#replication:" --target_file="/etc/mongod.conf" +ynh_replace_string --match_string=" replSetName: rs01" --replace_string="" --target_file="/etc/mongod.conf" + #================================================= # REMOVE NGINX CONFIGURATION #=================================================