#953 fix again running sudo

This commit is contained in:
Alexander Machehin 2013-03-02 01:34:52 +06:00
parent 4f26978aac
commit 3f4ea585df
1 changed files with 1 additions and 1 deletions

View File

@ -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