diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-02 13:46:32 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-02 13:46:32 +0300 |
commit | dd47f9532ff8015e3d981ba4fd7341b7514ae109 (patch) | |
tree | 448bf824ed1dcd338fe08c9760f1c3e38ea9ec34 /lib | |
parent | c883660a3e754b5a3b14ef4a1be69503d345e3b5 (diff) | |
download | gitlab-ce-dd47f9532ff8015e3d981ba4fd7341b7514ae109.tar.gz |
Fix gitlab-shell setup rake task
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/shell.rake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake index 2fcc889d883..00901a89fba 100644 --- a/lib/tasks/gitlab/shell.rake +++ b/lib/tasks/gitlab/shell.rake @@ -11,7 +11,8 @@ namespace :gitlab do gitlab_url = Settings.gitlab.url # gitlab-shell requires a / at the end of the url gitlab_url += "/" unless gitlab_url.match(/\/$/) - target_dir = File.join(home_dir, "gitlab-shell") + repos_path = Gitlab.config.gitlab_shell.repos_path + target_dir = Gitlab.config.gitlab_shell.path # Clone if needed unless File.directory?(target_dir) @@ -28,7 +29,7 @@ namespace :gitlab do user: user, gitlab_url: gitlab_url, http_settings: {self_signed_cert: false}, - repos_path: File.join(home_dir, "repositories"), + repos_path: repos_path, auth_file: File.join(home_dir, ".ssh", "authorized_keys"), redis: { bin: %x{which redis-cli}.chomp, @@ -38,7 +39,7 @@ namespace :gitlab do }, log_level: "INFO", audit_usernames: false - } + }.stringify_keys # Generate config.yml based on existing gitlab settings File.open("config.yml", "w+") {|f| f.puts config.to_yaml} |