Merge pull request #2890 from cameronyule/support_osx_groups
OS X support for gitlab:check rake tasks
This commit is contained in:
commit
428af5ea62
1 changed files with 1 additions and 2 deletions
|
@ -77,8 +77,7 @@ namespace :gitlab do
|
||||||
end
|
end
|
||||||
|
|
||||||
def gid_for(group_name)
|
def gid_for(group_name)
|
||||||
group_line = File.read("/etc/group").lines.select{|l| l.start_with?("#{group_name}:")}.first
|
Etc.getgrnam(group_name).gid
|
||||||
group_line.split(":")[2].to_i
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def warn_user_is_not_gitlab
|
def warn_user_is_not_gitlab
|
||||||
|
|
Loading…
Reference in a new issue