Skip to content

Commit

Permalink
Merge pull request #168 from infosiftr/initdb-args
Browse files Browse the repository at this point in the history
Pass extra mysqld flags to mysql_install_db
  • Loading branch information
tianon authored May 18, 2018
2 parents c10d7ea + 20b1413 commit 2027f88
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion 10.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion 10.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion 10.2/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion 10.3/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion 5.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down

0 comments on commit 2027f88

Please sign in to comment.