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 #!/bin/bash 1 #!/bin/bash
2 2
  3 +#To show the debug log
  4 +set -x
  5 +
3 DATABASE_HOST=$1 6 DATABASE_HOST=$1
4 7
5 if [[ ! "$DATABASE_HOST" ]] 8 if [[ ! "$DATABASE_HOST" ]]
@@ -71,13 +74,13 @@ sudo -iu git /usr/local/bin/git config --global user.name "GitLab" @@ -71,13 +74,13 @@ sudo -iu git /usr/local/bin/git config --global user.name "GitLab"
71 sudo -iu git /usr/local/bin/git config --global user.email "gitlab@localhost" 74 sudo -iu git /usr/local/bin/git config --global user.email "gitlab@localhost"
72 sudo -iu git /usr/local/bin/git config --global core.autocrlf input 75 sudo -iu git /usr/local/bin/git config --global core.autocrlf input
73 sudo chmod o-rwx /home/git/gitlab/config/database.yml 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 adapter: postgresql 78 adapter: postgresql
76 encoding: unicode 79 encoding: unicode
77 database: gitlabhq_production 80 database: gitlabhq_production
78 pool: 10 81 pool: 10
79 username: git 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 # Baixando as dependencias, criando o banco, instalando de fato 85 # Baixando as dependencias, criando o banco, instalando de fato
83 sudo su - git -c 'cd /home/git/gitlab && bundle config build.pg' 86 sudo su - git -c 'cd /home/git/gitlab && bundle config build.pg'