Commit f45571a26860c0e92201fc331ab80cee1399e0a8

Authored by Matheus de Sousa Faria
Committed by Sergio Oliveira
1 parent 5986b1d3

Changed giltab database.yml permission

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
scripts/gitlab.sh
1 1 #!/bin/bash
2 2  
  3 +#To show the debug log
  4 +set -x
  5 +
3 6 DATABASE_HOST=$1
4 7  
5 8 if [[ ! "$DATABASE_HOST" ]]
... ... @@ -71,13 +74,13 @@ sudo -iu git /usr/local/bin/git config --global user.name "GitLab"
71 74 sudo -iu git /usr/local/bin/git config --global user.email "gitlab@localhost"
72 75 sudo -iu git /usr/local/bin/git config --global core.autocrlf input
73 76 sudo chmod o-rwx /home/git/gitlab/config/database.yml
74   -sudo -u git echo "production:
  77 +sudo -u git -H bash -c 'echo "production:
75 78 adapter: postgresql
76 79 encoding: unicode
77 80 database: gitlabhq_production
78 81 pool: 10
79 82 username: git
80   - host: $DATABASE_HOST" > /home/git/gitlab/config/database.yml
  83 + host: $DATABASE_HOST" > /home/git/gitlab/config/database.yml'
81 84  
82 85 # Baixando as dependencias, criando o banco, instalando de fato
83 86 sudo su - git -c 'cd /home/git/gitlab && bundle config build.pg'
... ...