Skip to content

Commit

Permalink
Fix CentOS case error in Travis.
Browse files Browse the repository at this point in the history
As the `mysql_install_db` script in CentOS refers wrong path of
resolveip command: `/usr/libexec/resolveip`,
set `ln -s /usr/bin/resolveip /usr/libexec/resolveip` as a workflow.

See https://travis-ci.org/brianmario/mysql2/jobs/615263124#L2840
  • Loading branch information
junaruga committed Nov 22, 2019
1 parent 6abae9a commit 12a5e96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis_setup_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eux

MYSQL_TEST_LOG="$(pwd)/mysql.log"

# mysql_install_db uses wrong path for resolveip
# https://jira.mariadb.org/browse/MDEV-18563
# https://travis-ci.org/brianmario/mysql2/jobs/615263124#L2840
ln -s "$(command -v resolveip)" /usr/libexec/resolveip

mysql_install_db \
--log-error="${MYSQL_TEST_LOG}"
/usr/libexec/mysqld \
Expand Down

0 comments on commit 12a5e96

Please sign in to comment.