File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ until pg_isready -h postgres; do
5
+ sleep 1
6
+ done
7
+
8
+ while ! mysqladmin ping -h mysql --silent; do
9
+ echo " mysql - no response"
10
+ sleep 1
11
+ done
12
+
4
13
dropdb --if-exists -h postgres -U postgres rubybench
5
14
createdb -h postgres -U postgres rubybench
6
15
echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h mysql
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ until pg_isready -h postgres; do
5
+ sleep 1
6
+ done
7
+
8
+ while ! mysqladmin ping -h mysql --silent; do
9
+ echo " mysql - no response"
10
+ sleep 1
11
+ done
12
+
4
13
dropdb --if-exists -h postgres -U postgres rubybench
5
14
createdb -h postgres -U postgres rubybench
6
15
echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h mysql
You can’t perform that action at this time.
0 commit comments