Commit 72d48376ab81ee216ccec0cd65b114e85e63115e
Exists in
master
and in
4 other branches
Merge pull request #3057 from axilleas/master
Remove function 'check_issue_1059_shell_profile_error' from check.rake as it is not needed anymore
Showing
1 changed file
with
0 additions
and
25 deletions
Show diff stats
lib/tasks/gitlab/check.rake
| @@ -255,7 +255,6 @@ namespace :gitlab do | @@ -255,7 +255,6 @@ namespace :gitlab do | ||
| 255 | warn_user_is_not_gitlab | 255 | warn_user_is_not_gitlab |
| 256 | start_checking "Environment" | 256 | start_checking "Environment" |
| 257 | 257 | ||
| 258 | - check_issue_1059_shell_profile_error | ||
| 259 | check_gitlab_git_config | 258 | check_gitlab_git_config |
| 260 | check_python2_exists | 259 | check_python2_exists |
| 261 | check_python2_version | 260 | check_python2_version |
| @@ -294,30 +293,6 @@ namespace :gitlab do | @@ -294,30 +293,6 @@ namespace :gitlab do | ||
| 294 | end | 293 | end |
| 295 | end | 294 | end |
| 296 | 295 | ||
| 297 | - # see https://github.com/gitlabhq/gitlabhq/issues/1059 | ||
| 298 | - def check_issue_1059_shell_profile_error | ||
| 299 | - gitlab_shell_ssh_user = Gitlab.config.gitlab_shell.ssh_user | ||
| 300 | - print "Has no \"-e\" in ~#{gitlab_shell_ssh_user}/.profile ... " | ||
| 301 | - | ||
| 302 | - profile_file = File.join(gitlab_shell_user_home, ".profile") | ||
| 303 | - | ||
| 304 | - unless File.read(profile_file) =~ /^-e PATH/ | ||
| 305 | - puts "yes".green | ||
| 306 | - else | ||
| 307 | - puts "no".red | ||
| 308 | - try_fixing_it( | ||
| 309 | - "Open #{profile_file}", | ||
| 310 | - "Find the line starting with \"-e PATH\"", | ||
| 311 | - "Remove \"-e \" so the line starts with PATH" | ||
| 312 | - ) | ||
| 313 | - for_more_information( | ||
| 314 | - see_installation_guide_section("Gitlab Shell"), | ||
| 315 | - "https://github.com/gitlabhq/gitlabhq/issues/1059" | ||
| 316 | - ) | ||
| 317 | - fix_and_rerun | ||
| 318 | - end | ||
| 319 | - end | ||
| 320 | - | ||
| 321 | def check_python2_exists | 296 | def check_python2_exists |
| 322 | print "Has python2? ... " | 297 | print "Has python2? ... " |
| 323 | 298 |