Skip to content

Commit

Permalink
Rename docker_process_init_file to docker_process_init_files
Browse files Browse the repository at this point in the history
  • Loading branch information
ltangvald authored and yosifkit committed Sep 18, 2019
1 parent 1503220 commit 67f2bd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .template.Debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ file_env() {
unset "$fileVar"
}

# usage: docker_process_init_file FILENAME MYSQLCOMMAND...
# ie: docker_process_init_file foo.sh mysql -uroot
# usage: docker_process_init_files FILENAME MYSQLCOMMAND...
# ie: docker_process_init_files foo.sh mysql -uroot
# (process a single initializer file, based on its extension. we define this
# function here, so that initializer scripts (*.sh) can use the same logic,
# potentially recursively, or override the logic used in subsequent calls)
docker_process_init_file() {
docker_process_init_files() {
local f="$1"; shift
local mysql=( "$@" )

Expand Down Expand Up @@ -302,7 +302,7 @@ docker_main() {

echo
for f in /docker-entrypoint-initdb.d/*; do
docker_process_init_file "$f" "${mysql[@]}"
docker_process_init_files "$f" "${mysql[@]}"
done

if [ ! -z "$MYSQL_ONETIME_PASSWORD" ]; then
Expand Down

0 comments on commit 67f2bd3

Please sign in to comment.