Skip to content

Commit 76a92de

Browse files
committed
Next attempt to determine mysql command name
Newer versions of mysql docker image do not include the which command
1 parent 24507c6 commit 76a92de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ RELEASE_VERSION ?= $(shell git tag --points-at HEAD)
3838
# The following environment variables are assumed for MYSQL:
3939
# - MYSQL_PASSWORD: Password of the MySQL root user
4040
# - MYSQL_CMD_PREFIX: Prefix to use for all mysql commands (intended use: docker exec)
41-
MYSQLCMD := $(shell $(MYSQL_CMD_PREFIX) sh -c 'which mariadb mysql | head -n 1')
42-
MYSQLDUMPCMD := $(shell $(MYSQL_CMD_PREFIX) sh -c 'which mariadb-dump mysqldump | head -n 1')
41+
MYSQLCMD := $(shell $(MYSQL_CMD_PREFIX) sh -c 'find /usr/bin -name mariadb -o -name mysql | head -n 1')
42+
MYSQLDUMPCMD := $(shell $(MYSQL_CMD_PREFIX) sh -c 'find /usr/bin -name mariadb-dump -o -name mysqldump | head -n 1')
4343
MYSQL := $(MYSQL_CMD_PREFIX) $(MYSQLCMD) -u root -p"$$MYSQL_PASSWORD"
4444
MYSQLDUMP := $(MYSQL_CMD_PREFIX) $(MYSQLDUMP) -u root -p"$$MYSQL_PASSWORD"
4545

0 commit comments

Comments
 (0)