1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

fix mongo service

This commit is contained in:
yalh76 2022-06-30 19:34:44 +02:00
parent e6c1be888e
commit 759948d559
4 changed files with 8 additions and 8 deletions

View file

@ -130,8 +130,8 @@ ynh_script_progression --message="Configuring mongod..." --weight=1
ynh_replace_string --match_string="# engine:" --replace_string=" engine: wiredTiger" --target_file=$MONGO_CE_CONFIG
ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file=$MONGO_CE_CONFIG
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
ynh_exec_warn_less systemctl enable $MONGO_CE_SERVICENAME --quiet
ynh_systemd_action --service_name=$MONGO_CE_SERVICENAME --action=restart
sleep 10

View file

@ -56,12 +56,12 @@ ynh_remove_logrotate
#=================================================
ynh_script_progression --message="Removing the MongoDB database..."
ynh_mongo_exec --command="printjson(rs.remove(localhost))" --eval
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_systemd_action --service_name=$mongodb_servicename --action=restart
ynh_systemd_action --service_name=$MONGO_CE_SERVICENAME --action=restart
sleep 10

View file

@ -98,8 +98,8 @@ ynh_script_progression --message="Configuring mongod..." --weight=3
ynh_replace_string --match_string="# engine:" --replace_string=" engine: wiredTiger" --target_file=$MONGO_CE_CONFIG
ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file=$MONGO_CE_CONFIG
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
ynh_exec_warn_less systemctl enable $MONGO_CE_SERVICENAME --quiet
ynh_systemd_action --service_name=$MONGO_CE_SERVICENAME --action=restart
sleep 10

View file

@ -127,8 +127,8 @@ ynh_script_progression --message="Configuring mongod..." --weight=1
ynh_replace_string --match_string="# engine:" --replace_string=" engine: wiredTiger" --target_file=$MONGO_CE_CONFIG
ynh_replace_string --match_string="#replication:" --replace_string="replication:\n replSetName: rs01" --target_file=$MONGO_CE_CONFIG
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
ynh_exec_warn_less systemctl enable $MONGO_CE_SERVICENAME --quiet
ynh_systemd_action --service_name=$MONGO_CE_SERVICENAME --action=restart
sleep 10