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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5f7d6c7d
Commit
5f7d6c7d
authored
Jun 03, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gitlab:env:check task.
parent
41d4aaa4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
62 deletions
+2
-62
doc/install/installation.md
doc/install/installation.md
+0
-6
doc/raketasks/maintenance.md
doc/raketasks/maintenance.md
+1
-2
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+1
-54
No files found.
doc/install/installation.md
View file @
5f7d6c7d
...
...
@@ -241,12 +241,6 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
# Copy the example Rack attack config
sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
# Configure Git global settings for git user, useful when editing via web
# Edit user.email according to what is set in gitlab.yml
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "example@example.com"
sudo -u git -H git config --global core.autocrlf input
# Configure Redis connection settings
sudo -u git -H cp config/resque.yml.example config/resque.yml
...
...
doc/raketasks/maintenance.md
View file @
5f7d6c7d
...
...
@@ -47,7 +47,6 @@ Git: /usr/bin/git
Runs the following rake tasks:
-
`gitlab:env:check`
-
`gitlab:gitlab_shell:check`
-
`gitlab:sidekiq:check`
-
`gitlab:app:check`
...
...
@@ -147,7 +146,7 @@ Do you want to continue (yes/no)? yes
## Clear redis cache
If for some reason the dashboard shows wrong information you might want to
If for some reason the dashboard shows wrong information you might want to
clear Redis' cache.
For Omnibus-packages:
...
...
lib/tasks/gitlab/check.rake
View file @
5f7d6c7d
namespace
:gitlab
do
desc
"GITLAB | Check the configuration of GitLab and its environment"
task
check:
%w{gitlab:env:check
gitlab:gitlab_shell:check
task
check:
%w{gitlab:gitlab_shell:check
gitlab:sidekiq:check
gitlab:ldap:check
gitlab:app:check}
...
...
@@ -298,58 +297,6 @@ namespace :gitlab do
end
end
namespace
:env
do
desc
"GITLAB | Check the configuration of the environment"
task
check: :environment
do
warn_user_is_not_gitlab
start_checking
"Environment"
check_gitlab_git_config
finished_checking
"Environment"
end
# Checks
########################
def
check_gitlab_git_config
print
"Git configured for
#{
gitlab_user
}
user? ... "
options
=
{
"user.name"
=>
"GitLab"
,
"user.email"
=>
Gitlab
.
config
.
gitlab
.
email_from
,
"core.autocrlf"
=>
"input"
}
correct_options
=
options
.
map
do
|
name
,
value
|
run
(
%W(
#{
Gitlab
.
config
.
git
.
bin_path
}
config --global --get
#{
name
}
)
).
try
(
:squish
)
==
value
end
if
correct_options
.
all?
puts
"yes"
.
green
else
print
"Trying to fix Git error automatically. ..."
if
auto_fix_git_config
(
options
)
puts
"Success"
.
green
else
puts
"Failed"
.
red
try_fixing_it
(
sudo_gitlab
(
"
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
config --global user.name
\"
#{
options
[
"user.name"
]
}
\"
"
),
sudo_gitlab
(
"
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
config --global user.email
\"
#{
options
[
"user.email"
]
}
\"
"
),
sudo_gitlab
(
"
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
config --global core.autocrlf
\"
#{
options
[
"core.autocrlf"
]
}
\"
"
)
)
for_more_information
(
see_installation_guide_section
"GitLab"
)
end
end
end
end
namespace
:gitlab_shell
do
desc
"GITLAB | Check the configuration of GitLab Shell"
task
check: :environment
do
...
...
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