Commit 70f607019aa2784d2e892af264617ecc30f74da4
1 parent
e2024fb6
Exists in
master
and in
1 other branch
adicionando sudo para edicao do arquivo gitlab.rb
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
script/gitlab.sh
| ... | ... | @@ -101,15 +101,15 @@ port="389" |
| 101 | 101 | bind_dn="cn=admin,$base" |
| 102 | 102 | password=$PASSWORD_LDAP |
| 103 | 103 | |
| 104 | -echo "gitlab_rails['ldap_enabled'] = true" >> /etc/gitlab/gitlab.rb | |
| 105 | -echo "gitlab_rails['ldap_host'] = '$localhost' " >> /etc/gitlab/gitlab.rb | |
| 106 | -echo "gitlab_rails['ldap_port'] = $port" >> /etc/gitlab/gitlab.rb | |
| 107 | -echo "gitlab_rails['ldap_base'] = '$base'" >> /etc/gitlab/gitlab.rb | |
| 108 | -echo "gitlab_rails['ldap_uid'] = 'uid'" >> /etc/gitlab/gitlab.rb | |
| 109 | -echo "gitlab_rails['ldap_method'] = 'plain'" >> /etc/gitlab/gitlab.rb | |
| 110 | -echo "gitlab_rails['ldap_bind_dn'] = '$bind_dn'" >> /etc/gitlab/gitlab.rb | |
| 111 | -echo "gitlab_rails['ldap_password'] = '$password'" >> /etc/gitlab/gitlab.rb | |
| 112 | -echo "gitlab_rails['ldap_allow_username_or_email_login'] = true" >> /etc/gitlab/gitlab.rb | |
| 104 | +sudo echo "gitlab_rails['ldap_enabled'] = true" >> /etc/gitlab/gitlab.rb | |
| 105 | +sudo echo "gitlab_rails['ldap_host'] = '$localhost' " >> /etc/gitlab/gitlab.rb | |
| 106 | +sudo echo "gitlab_rails['ldap_port'] = $port" >> /etc/gitlab/gitlab.rb | |
| 107 | +sudo echo "gitlab_rails['ldap_base'] = '$base'" >> /etc/gitlab/gitlab.rb | |
| 108 | +sudo echo "gitlab_rails['ldap_uid'] = 'uid'" >> /etc/gitlab/gitlab.rb | |
| 109 | +sudo echo "gitlab_rails['ldap_method'] = 'plain'" >> /etc/gitlab/gitlab.rb | |
| 110 | +sudo echo "gitlab_rails['ldap_bind_dn'] = '$bind_dn'" >> /etc/gitlab/gitlab.rb | |
| 111 | +sudo echo "gitlab_rails['ldap_password'] = '$password'" >> /etc/gitlab/gitlab.rb | |
| 112 | +sudo echo "gitlab_rails['ldap_allow_username_or_email_login'] = true" >> /etc/gitlab/gitlab.rb | |
| 113 | 113 | |
| 114 | 114 | |
| 115 | 115 | echo "Iniciando gitlab" | ... | ... |