remove extra line
This commit is contained in:
parent
01c3cde3f6
commit
d8db64134b
1 changed files with 2 additions and 3 deletions
5
debian/README.Debian
vendored
5
debian/README.Debian
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue