#953 fix again running sudo
This commit is contained in:
parent
4f26978aac
commit
3f4ea585df
|
@ -2,7 +2,7 @@
|
|||
# https://github.com/gitlabhq/gitlabhq/blob/15c0e58a49d623a0f8747e1d7e74364324eeb79f/app/models/key.rb
|
||||
|
||||
class SshKey < ActiveRecord::Base
|
||||
SHELL_KEY_COMMAND = "sudo -i -u git ~#{APP_CONFIG['shell_user']}/gitlab-shell/bin/gitlab-keys"
|
||||
SHELL_KEY_COMMAND = "sudo -i -u #{APP_CONFIG['shell_user']} ~#{APP_CONFIG['shell_user']}/gitlab-shell/bin/gitlab-keys"
|
||||
|
||||
belongs_to :user
|
||||
attr_accessible :key, :name
|
||||
|
|
Loading…
Reference in New Issue