From 5136afd26f2a61f74b57921b792e4598c1101c6b Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 15 Feb 2024 20:21:50 +0100 Subject: [PATCH] fix mongo --- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index d6f47f4..b10aa94 100755 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,7 @@ ynh_mongo_setup_db --db_user=$db_user --db_name=$db_name #================================================= ynh_script_progression --message="Configuring MongoDB..." --weight=10 -ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file="/etc/mongod.conf" +ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs0" --target_file="/etc/mongod.conf" ynh_exec_warn_less systemctl enable mongod --quiet ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mongodb/mongod.log --line_match="Waiting for connections" diff --git a/scripts/remove b/scripts/remove index 3513a07..49831f8 100755 --- a/scripts/remove +++ b/scripts/remove @@ -112,7 +112,7 @@ ynh_script_progression --message="Removing the MongoDB database..." 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" +ynh_replace_string --match_string=" replSetName: rs0" --replace_string="" --target_file="/etc/mongod.conf" #================================================= # REMOVE NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 6d3402c..b9284b1 100755 --- a/scripts/restore +++ b/scripts/restore @@ -37,7 +37,7 @@ ynh_mongo_setup_db --db_user=$db_user --db_name=$db_name #================================================= ynh_script_progression --message="Configuring MongoDB..." --weight=10 -ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file="/etc/mongod.conf" +ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs0" --target_file="/etc/mongod.conf" ynh_exec_warn_less systemctl enable mongod --quiet ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mongodb/mongod.log --line_match="Waiting for connections" diff --git a/scripts/upgrade b/scripts/upgrade index e67fbb7..55f8bec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,7 +57,7 @@ ynh_script_progression --message="Ensuring downward compatibility..." #================================================= ynh_script_progression --message="Configuring MongoDB..." --weight=10 -ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file="/etc/mongod.conf" +ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs0" --target_file="/etc/mongod.conf" ynh_exec_warn_less systemctl enable mongod --quiet ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mongodb/mongod.log --line_match="Waiting for connections"