remove extra line

This commit is contained in:
Pirate Praveen 2018-08-23 19:11:08 +05:30
parent 01c3cde3f6
commit d8db64134b

View file

@ -140,9 +140,8 @@ The steps involve dropping into rails console as gitlab user for production envi
Granting an existing user admin access
======================================
The steps involve dropping into rails console as gitlab user for production environment and running the commands on the user object.
The steps involve dropping into rails console as gitlab user for production environment and running the following commands.
$ runuser -u gitlab -- sh -c 'cd /usr/share/gitlab && . /etc/gitlab/gitlab-debian.conf && export DB RAILS_ENV && bundle exec rails console production'
irb(main):001:0> user = User.find_by(email: 'useraddress@domain')
irb(main):002:0> user.admin=true
irb(main):003:0> user.admin=true
irb(main):004:0> user.save
irb(main):004:0> user.save