Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
dd47f953
Commit
dd47f953
authored
May 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gitlab-shell setup rake task
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c883660a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/tasks/gitlab/shell.rake
lib/tasks/gitlab/shell.rake
+4
-3
No files found.
lib/tasks/gitlab/shell.rake
View file @
dd47f953
...
@@ -11,7 +11,8 @@ namespace :gitlab do
...
@@ -11,7 +11,8 @@ namespace :gitlab do
gitlab_url
=
Settings
.
gitlab
.
url
gitlab_url
=
Settings
.
gitlab
.
url
# gitlab-shell requires a / at the end of the url
# gitlab-shell requires a / at the end of the url
gitlab_url
+=
"/"
unless
gitlab_url
.
match
(
/\/$/
)
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
# Clone if needed
unless
File
.
directory?
(
target_dir
)
unless
File
.
directory?
(
target_dir
)
...
@@ -28,7 +29,7 @@ namespace :gitlab do
...
@@ -28,7 +29,7 @@ namespace :gitlab do
user:
user
,
user:
user
,
gitlab_url:
gitlab_url
,
gitlab_url:
gitlab_url
,
http_settings:
{
self_signed_cert:
false
},
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"
),
auth_file:
File
.
join
(
home_dir
,
".ssh"
,
"authorized_keys"
),
redis:
{
redis:
{
bin:
%x{which redis-cli}
.
chomp
,
bin:
%x{which redis-cli}
.
chomp
,
...
@@ -38,7 +39,7 @@ namespace :gitlab do
...
@@ -38,7 +39,7 @@ namespace :gitlab do
},
},
log_level:
"INFO"
,
log_level:
"INFO"
,
audit_usernames:
false
audit_usernames:
false
}
}
.
stringify_keys
# Generate config.yml based on existing gitlab settings
# Generate config.yml based on existing gitlab settings
File
.
open
(
"config.yml"
,
"w+"
)
{
|
f
|
f
.
puts
config
.
to_yaml
}
File
.
open
(
"config.yml"
,
"w+"
)
{
|
f
|
f
.
puts
config
.
to_yaml
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment