# Differences from upstream

- includes a patch for this unresolved upstream bug:
  https://github.com/RocketChat/Rocket.Chat/issues/25722
- EE features can be temporarily unlocked, see below


## Unlock EE features

When you have a valide EE license for your production environment, you
may want to be able to tests some EE-only features on your staging
environment without being obliged to subscribe a new license.
For example, to test LDAP Advanced Sync settings.

To unlock EE features, run the following mongo query:

    db.rocketchat_settings.insertOne({ _id: "EE_Debug", value: true });

EE features will be immediatly available.
To lock EE features, run:

    db.rocketchat_settings.deleteOne({ _id: "EE_Debug" });

And then you must restart rocketchat services to make the change visible.


## Initialize MongoDB replicaSet

On an fresh mongo install, you must enable replicaSet.

Add this in `/etc/mongod.conf`:

```
replication:
    replSetName:  "rs01"
```

Then execute this:

```
TERM=xterm mongosh --quiet localhost:27017/rocketchat --eval 'rs.initiate()'
```
