Loading server/startup/initialData.coffee +2 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,8 @@ Meteor.startup -> console.log 'Username provided is invalid; Ignoring environment variables ADMIN_USERNAME'.red console.log "Username: #{adminUser.username}".green adminUser.type = 'user' id = RocketChat.models.Users.create adminUser Accounts.setPassword id, process.env.ADMIN_PASS Loading server/startup/migrations/v046.js 0 → 100644 +8 −0 Original line number Diff line number Diff line RocketChat.Migrations.add({ version: 46, up: function() { if (RocketChat && RocketChat.models && RocketChat.models.Users) { RocketChat.models.Users.update({ type: { $exists: false } }, { $set: { type: 'user' } }, { multi: true }); } } }); Loading
server/startup/initialData.coffee +2 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,8 @@ Meteor.startup -> console.log 'Username provided is invalid; Ignoring environment variables ADMIN_USERNAME'.red console.log "Username: #{adminUser.username}".green adminUser.type = 'user' id = RocketChat.models.Users.create adminUser Accounts.setPassword id, process.env.ADMIN_PASS Loading
server/startup/migrations/v046.js 0 → 100644 +8 −0 Original line number Diff line number Diff line RocketChat.Migrations.add({ version: 46, up: function() { if (RocketChat && RocketChat.models && RocketChat.models.Users) { RocketChat.models.Users.update({ type: { $exists: false } }, { $set: { type: 'user' } }, { multi: true }); } } });