gentoo-overlay/dev-vcs/gitlab-shell/files/gitlab-shell-1.9.3-config-paths.patch

41 lines
1.3 KiB
Diff

--- config.yml.example.orig 2014-04-03 17:20:56.000000000 +0200
+++ config.yml.example 2014-05-18 17:52:54.290000000 +0200
@@ -15,10 +15,10 @@
# Give the canonicalized absolute pathname,
# REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
# Check twice that none of the components is a symlink, including "/home".
-repos_path: "/home/git/repositories"
+repos_path: "/var/lib/git/repositories"
# File used as authorized_keys for gitlab user
-auth_file: "/home/git/.ssh/authorized_keys"
+auth_file: "/var/lib/git/.ssh/authorized_keys"
# Redis settings used for pushing commit notices to gitlab
redis:
@@ -30,7 +30,7 @@
# Log file.
# Default is gitlab-shell.log in the root directory.
-# log_file: "/home/git/gitlab-shell/gitlab-shell.log"
+# log_file: "/var/log/gitlab/gitlab-shell.log"
# Log level. INFO by default
log_level: INFO
--- lib/gitlab_config.rb.orig 2014-05-18 17:48:34.660000000 +0200
+++ lib/gitlab_config.rb 2014-05-18 17:51:15.690000000 +0200
@@ -8,11 +8,11 @@
end
def repos_path
- @config['repos_path'] ||= "/home/git/repositories"
+ @config['repos_path'] ||= "/var/lib/git/repositories"
end
def auth_file
- @config['auth_file'] ||= "/home/git/.ssh/authorized_keys"
+ @config['auth_file'] ||= "/var/lib/git/.ssh/authorized_keys"
end
def gitlab_url