Update scripts/prepare_build.sh
This commit is contained in:
parent
209e656e43
commit
c17570d3b3
1 changed files with 2 additions and 4 deletions
|
@ -27,11 +27,9 @@ fi
|
|||
cp config/database.yml.$GITLAB_DATABASE config/database.yml
|
||||
|
||||
if [ "$GITLAB_DATABASE" = 'postgresql' ]; then
|
||||
sed -i 's/# host:.*/host: postgres/g' config/database.yml
|
||||
sed -i 's/localhost/postgres/g' config/database.yml
|
||||
else # Assume it's mysql
|
||||
sed -i 's/username:.*/username: root/g' config/database.yml
|
||||
sed -i 's/password:.*/password:/g' config/database.yml
|
||||
sed -i 's/# host:.*/host: mysql/g' config/database.yml
|
||||
sed -i 's/localhost/mysql/g' config/database.yml
|
||||
fi
|
||||
|
||||
cp config/resque.yml.example config/resque.yml
|
||||
|
|
Loading…
Reference in a new issue