Skip to content
Snippets Groups Projects
Commit 772a9640 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

accepts uniqueID by environment

parent c3528da1
No related branches found
No related tags found
No related merge requests found
# Insert server unique id if it doesn't exist
if not RocketChat.models.Settings.findOneById 'uniqueID'
RocketChat.models.Settings.createWithIdAndValue 'uniqueID', Random.id()
RocketChat.models.Settings.createWithIdAndValue 'uniqueID', process.env.DEPLOYMENT_ID or Random.id()
RocketChat.settings.addGroup 'Accounts', ->
@add 'Accounts_AllowUserProfileChange', true, { type: 'boolean', public: true }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment