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 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | # Coloque aqui os ips do gitlab e do redmine | 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 | while [ -e $IP_GITLAB ] | 9 | while [ -e $IP_GITLAB ] |
| 10 | do | 10 | do |
| @@ -32,7 +32,7 @@ done | @@ -32,7 +32,7 @@ done | ||
| 32 | 32 | ||
| 33 | while [ -e $IP_LDAP ] | 33 | while [ -e $IP_LDAP ] |
| 34 | do | 34 | do |
| 35 | - echo "Digite o IP externo do Redmine: " | 35 | + echo "Digite o IP externo do LDAP: " |
| 36 | read IP_LDAP | 36 | read IP_LDAP |
| 37 | echo "Senha Ldap:" | 37 | echo "Senha Ldap:" |
| 38 | read PASSWORD_LDAP | 38 | read PASSWORD_LDAP |
| @@ -42,7 +42,7 @@ do | @@ -42,7 +42,7 @@ do | ||
| 42 | read CONFIRMA | 42 | read CONFIRMA |
| 43 | if [ "$CONFIRMA" != "y" ] ; then | 43 | if [ "$CONFIRMA" != "y" ] ; then |
| 44 | IP_LDAP= | 44 | IP_LDAP= |
| 45 | - PASSWORD_LDAP= | 45 | + PASSWORD_LDAP= |
| 46 | fi | 46 | fi |
| 47 | done | 47 | done |
| 48 | 48 | ||
| @@ -82,9 +82,9 @@ sudo echo "external_url \"http://$IP_GITLAB\"" >> /etc/gitlab/gitlab.rb | @@ -82,9 +82,9 @@ sudo echo "external_url \"http://$IP_GITLAB\"" >> /etc/gitlab/gitlab.rb | ||
| 82 | 82 | ||
| 83 | sudo echo "gitlab_rails['issues_tracker_redmine'] = 'redmine'" >> /etc/gitlab/gitlab.rb | 83 | sudo echo "gitlab_rails['issues_tracker_redmine'] = 'redmine'" >> /etc/gitlab/gitlab.rb |
| 84 | sudo echo "gitlab_rails['issues_tracker_redmine_title'] = 'Redmine'" >> /etc/gitlab/gitlab.rb | 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 | #7. Liberando firewall para servisos http e ssh | 89 | #7. Liberando firewall para servisos http e ssh |
| 90 | echo "Adicionando regras no firewall para habilitar http e ssh, caso estejam desabilitados" | 90 | echo "Adicionando regras no firewall para habilitar http e ssh, caso estejam desabilitados" |
| @@ -123,4 +123,3 @@ sudo gitlab-ctl restart | @@ -123,4 +123,3 @@ sudo gitlab-ctl restart | ||
| 123 | echo "Sucesso! Para acessar o gitlab, abra no navegador o ip $IP_GITLAB" | 123 | echo "Sucesso! Para acessar o gitlab, abra no navegador o ip $IP_GITLAB" |
| 124 | echo "Usuario: root" | 124 | echo "Usuario: root" |
| 125 | echo "Senha: 5iveL!fe" | 125 | echo "Senha: 5iveL!fe" |
| 126 | - |