summaryrefslogtreecommitdiff
path: root/scripts/prepare_build.sh
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-03-27 00:53:36 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-10-17 21:15:19 +0300
commitc17570d3b36452e47229d4fa282af75ecc08b690 (patch)
tree598bbbac27d399daa44983d00163e723f78081a1 /scripts/prepare_build.sh
parent209e656e43d905094f6db3f9ef206649f3cd7ea2 (diff)
downloadgitlab-ce-c17570d3b36452e47229d4fa282af75ecc08b690.tar.gz
Update scripts/prepare_build.sh
Diffstat (limited to 'scripts/prepare_build.sh')
-rw-r--r--scripts/prepare_build.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 39806901274..7abadef5e89 100644
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -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