Skip to content

Commit f1b17f9

Browse files
committed
Fix sed command
1 parent 870c9b8 commit f1b17f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ env:
88
- TEST_COMMAND=$(echo $TRAVIS_REPO_SLUG | cut -d/ -f 2) # Get command name to be tested
99

1010
before_script:
11-
- cat /etc/mysql/my.cnf
12-
- sudo sed '/\/bind-address = 127.0.0.1\/i/bind-address = 0.0.0.0/’ /etc/mysql/my.cnf
13-
- cat /etc/mysql/my.cnf
11+
- cat /etc/mysql/my.cnf | grep -i 'bind-address'
12+
- sudo sed 's/^bind-address.*\/bind-address = 0.0.0.0/’ /etc/mysql/my.cnf
13+
- cat /etc/mysql/my.cnf | grep -i 'bind-address'
1414
- sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
1515
- |
1616
# Remove Xdebug for a huge performance increase:

0 commit comments

Comments
 (0)