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

Update install

This commit is contained in:
ericgaspar 2021-11-13 23:54:15 +01:00
parent 992a2682c9
commit ce2d66a84a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -138,16 +138,16 @@ ynh_add_systemd_config
ynh_script_progression --message="Configuring a mongod..." --weight=1
sed -i "s/^# engine:/ engine: wiredTiger/" /etc/mongod.conf
sed -i "s/^#replication:/replication:\n replSetName: \"rs01\"/" /etc/mongod.conf
sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
#mongo --eval "printjson(rs.initiate())"
sleep 10
mongo --eval "printjson(rs.initiate())"
#=================================================
# GENERIC FINALIZATION
#=================================================