Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
c3adf40f
Commit
c3adf40f
authored
Nov 18, 2016
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove bashism from scripts/prepare_build.sh
parent
688ff26d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
scripts/prepare_build.sh
scripts/prepare_build.sh
+5
-4
No files found.
scripts/prepare_build.sh
View file @
c3adf40f
#!/bin/
ba
sh
#!/bin/sh
retry
()
{
retry
()
{
if
eval
"
$@
"
;
then
if
eval
"
$@
"
;
then
...
@@ -24,11 +24,12 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
...
@@ -24,11 +24,12 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
cp
config/resque.yml.example config/resque.yml
cp
config/resque.yml.example config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
export
FLAGS
=
(
--path
vendor
--retry
3
--quiet
)
export
FLAGS
=
"--path vendor --retry 3 --quiet"
else
else
export
PATH
=
$HOME
/bin:/usr/local/bin:/usr/bin:/bin
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
cp
config/database.yml.mysql config/database.yml
sed
"s/username
\:
.*
$/
username
\:
runner/"
-i
config/database.yml
sed
"s/username
\:
.*
$/
username
\:
runner/"
-i
config/database.yml
sed
"s/password
\:
.*
$/
password
\:
'password'/"
-i
config/database.yml
sed
"s/password
\:
.*
$/
password
\:
'password'/"
-i
config/database.yml
sed
"s/gitlabhq_test/gitlabhq_test_
$
((
RANDOM/5000
))
/"
-i
config/database.yml
sed
"s/gitlabhq_test/gitlabhq_test_
$
rnd
/"
-i
config/database.yml
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment