Update scripts/prepare_build.sh

This commit is contained in:
bogdanvlviv 2017-03-27 00:53:36 +03:00
parent 209e656e43
commit c17570d3b3
No known key found for this signature in database
GPG key ID: E4ACD76A6DB6DFDD

View file

@ -27,11 +27,9 @@ fi
cp config/database.yml.$GITLAB_DATABASE config/database.yml cp config/database.yml.$GITLAB_DATABASE config/database.yml
if [ "$GITLAB_DATABASE" = 'postgresql' ]; then 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 else # Assume it's mysql
sed -i 's/username:.*/username: root/g' config/database.yml sed -i 's/localhost/mysql/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
sed -i 's/# host:.*/host: mysql/g' config/database.yml
fi fi
cp config/resque.yml.example config/resque.yml cp config/resque.yml.example config/resque.yml