Commit 0b31b1c8eee730fed0ea381d2d38fa5c10461bbc
1 parent
56f03ffb
Exists in
master
and in
1 other branch
Removendo valores default de variaveis
Showing
1 changed file
with
9 additions
and
10 deletions
Show diff stats
script/gitlab.sh
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | 3 | # Coloque aqui os ips do gitlab e do redmine |
4 | -IP_GITLAB="localhost" | |
5 | -IP_REDMINE=$1 | |
6 | -IP_LDAP=$2 | |
7 | -PASSWORD_LDAP=$3 | |
4 | +IP_GITLAB= | |
5 | +IP_REDMINE= | |
6 | +IP_LDAP= | |
7 | +PASSWORD_LDAP= | |
8 | 8 | |
9 | 9 | while [ -e $IP_GITLAB ] |
10 | 10 | do |
... | ... | @@ -32,7 +32,7 @@ done |
32 | 32 | |
33 | 33 | while [ -e $IP_LDAP ] |
34 | 34 | do |
35 | - echo "Digite o IP externo do Redmine: " | |
35 | + echo "Digite o IP externo do LDAP: " | |
36 | 36 | read IP_LDAP |
37 | 37 | echo "Senha Ldap:" |
38 | 38 | read PASSWORD_LDAP |
... | ... | @@ -42,7 +42,7 @@ do |
42 | 42 | read CONFIRMA |
43 | 43 | if [ "$CONFIRMA" != "y" ] ; then |
44 | 44 | IP_LDAP= |
45 | - PASSWORD_LDAP= | |
45 | + PASSWORD_LDAP= | |
46 | 46 | fi |
47 | 47 | done |
48 | 48 | |
... | ... | @@ -82,9 +82,9 @@ sudo echo "external_url \"http://$IP_GITLAB\"" >> /etc/gitlab/gitlab.rb |
82 | 82 | |
83 | 83 | sudo echo "gitlab_rails['issues_tracker_redmine'] = 'redmine'" >> /etc/gitlab/gitlab.rb |
84 | 84 | sudo echo "gitlab_rails['issues_tracker_redmine_title'] = 'Redmine'" >> /etc/gitlab/gitlab.rb |
85 | -sudo echo "gitlab_rails['issues_tracker_redmine_project_url'] = 'http://$IP_REDMINE/projects/:issues_tracker_id'" >> /etc/gitlab/gitlab.rb | |
86 | -sudo echo "gitlab_rails['issues_tracker_redmine_issues_url'] = 'http://$IP_REDMINE/issues/:id'" >> /etc/gitlab/gitlab.rb | |
87 | -sudo echo "gitlab_rails['issues_tracker_redmine_new_issue_url'] = 'http://$IP_REDMINE/projects/:issues_tracker_id/issues/new'" >> /etc/gitlab/gitlab.rb | |
85 | +sudo echo "gitlab_rails['issues_tracker_redmine_project_url'] = 'http://$IP_REDMINE/redmine/projects/:issues_tracker_id'" >> /etc/gitlab/gitlab.rb | |
86 | +sudo echo "gitlab_rails['issues_tracker_redmine_issues_url'] = 'http://$IP_REDMINE/redmine/issues/:id'" >> /etc/gitlab/gitlab.rb | |
87 | +sudo echo "gitlab_rails['issues_tracker_redmine_new_issue_url'] = 'http://$IP_REDMINE/redmine/projects/:issues_tracker_id/issues/new'" >> /etc/gitlab/gitlab.rb | |
88 | 88 | |
89 | 89 | #7. Liberando firewall para servisos http e ssh |
90 | 90 | echo "Adicionando regras no firewall para habilitar http e ssh, caso estejam desabilitados" |
... | ... | @@ -123,4 +123,3 @@ sudo gitlab-ctl restart |
123 | 123 | echo "Sucesso! Para acessar o gitlab, abra no navegador o ip $IP_GITLAB" |
124 | 124 | echo "Usuario: root" |
125 | 125 | echo "Senha: 5iveL!fe" |
126 | - | ... | ... |