mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Merge pull request #2890 from cameronyule/support_osx_groups
OS X support for gitlab:check rake tasks
This commit is contained in:
@@ -77,8 +77,7 @@ namespace :gitlab do
|
||||
end
|
||||
|
||||
def gid_for(group_name)
|
||||
group_line = File.read("/etc/group").lines.select{|l| l.start_with?("#{group_name}:")}.first
|
||||
group_line.split(":")[2].to_i
|
||||
Etc.getgrnam(group_name).gid
|
||||
end
|
||||
|
||||
def warn_user_is_not_gitlab
|
||||
|
||||
Reference in New Issue
Block a user