Remove unused code from the scripts/prepare_build.sh file
This commit is contained in:
parent
bb51062ed7
commit
f86edca66c
1 changed files with 7 additions and 16 deletions
|
@ -15,21 +15,12 @@ retry() {
|
|||
return 1
|
||||
}
|
||||
|
||||
if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
|
||||
cp config/database.yml.mysql config/database.yml
|
||||
sed -i 's/username:.*/username: root/g' config/database.yml
|
||||
sed -i 's/password:.*/password:/g' config/database.yml
|
||||
sed -i 's/# socket:.*/host: mysql/g' config/database.yml
|
||||
cp config/database.yml.mysql config/database.yml
|
||||
sed -i 's/username:.*/username: root/g' config/database.yml
|
||||
sed -i 's/password:.*/password:/g' config/database.yml
|
||||
sed -i 's/# socket:.*/host: mysql/g' config/database.yml
|
||||
|
||||
cp config/resque.yml.example config/resque.yml
|
||||
sed -i 's/localhost/redis/g' config/resque.yml
|
||||
cp config/resque.yml.example config/resque.yml
|
||||
sed -i 's/localhost/redis/g' config/resque.yml
|
||||
|
||||
export FLAGS="--path vendor --retry 3 --quiet"
|
||||
else
|
||||
rnd=$(awk 'BEGIN { srand() ; printf("%d\n",rand()*5) }')
|
||||
export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
cp config/database.yml.mysql config/database.yml
|
||||
sed "s/username\:.*$/username\: runner/" -i config/database.yml
|
||||
sed "s/password\:.*$/password\: 'password'/" -i config/database.yml
|
||||
sed "s/gitlabhq_test/gitlabhq_test_$rnd/" -i config/database.yml
|
||||
fi
|
||||
export FLAGS="--path vendor --retry 3 --quiet"
|
||||
|
|
Loading…
Reference in a new issue