Commit a183aa3c authored by Robert Speicher's avatar Robert Speicher

CE-EE parity for prepare_build script

This removes EE-only directives in favor of file existence checks.
parent 07e079e8
...@@ -28,13 +28,25 @@ fi ...@@ -28,13 +28,25 @@ fi
cp config/database.yml.$GITLAB_DATABASE config/database.yml cp config/database.yml.$GITLAB_DATABASE config/database.yml
if [ -f config/database_geo.yml.$GITLAB_DATABASE ]; then
cp config/database_geo.yml.$GITLAB_DATABASE config/database_geo.yml
fi
# Set user to a non-superuser to ensure we test permissions # Set user to a non-superuser to ensure we test permissions
sed -i 's/username: root/username: gitlab/g' config/database.yml sed -i 's/username: root/username: gitlab/g' config/database.yml
if [ "$GITLAB_DATABASE" = 'postgresql' ]; then if [ "$GITLAB_DATABASE" = 'postgresql' ]; then
sed -i 's/localhost/postgres/g' config/database.yml sed -i 's/localhost/postgres/g' config/database.yml
if [ -f config/database_geo.yml ]; then
sed -i 's/localhost/postgres/g' config/database_geo.yml
fi
else # Assume it's mysql else # Assume it's mysql
sed -i 's/localhost/mysql/g' config/database.yml sed -i 's/localhost/mysql/g' config/database.yml
if [ -f config/database_geo.yml ]; then
sed -i 's/localhost/mysql/g' config/database_geo.yml
fi
fi fi
cp config/resque.yml.example config/resque.yml cp config/resque.yml.example config/resque.yml
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment