Skip to content

Commit 24dda4a

Browse files
committed
Merge pull request gitlabhq#91 from raphendyr/patch-1
Replace build in home folder with environment
2 parents 5cab604 + 3f51364 commit 24dda4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/gitlab_config.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ def initialize
77
@config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
88
end
99

10+
def home
11+
ENV['HOME']
12+
end
13+
1014
def repos_path
11-
@config['repos_path'] ||= "/home/git/repositories"
15+
@config['repos_path'] ||= File.join(home, "repositories")
1216
end
1317

1418
def auth_file
15-
@config['auth_file'] ||= "/home/git/.ssh/authorized_keys"
19+
@config['auth_file'] ||= File.join(home, ".ssh/authorized_keys")
1620
end
1721

1822
def gitlab_url

0 commit comments

Comments
 (0)