Skip to content

Commit

Permalink
Rename docker_main to _main
Browse files Browse the repository at this point in the history
The function is not meant to be overridden
  • Loading branch information
ltangvald authored and yosifkit committed Sep 18, 2019
1 parent c9600d2 commit f1abc95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .template.Debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ docker_load_tzinfo() {
mysql_tzinfo_to_sql /usr/share/zoneinfo | sed 's/Local time zone must be set--see zic manual page/FCTY/' | "${mysql[@]}" mysql
}

docker_main() {
_main() {
mysql_note "Entrypoint script for MySQL Server ${MYSQL_VERSION} started."

if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
Expand Down Expand Up @@ -325,5 +325,5 @@ docker_main() {
# This checks if the script has been sourced from elsewhere.
# If so we don't perform any further actions
if [ "${FUNCNAME[${#FUNCNAME[@]} - 1]}" != 'source' ]; then
docker_main "$@"
_main "$@"
fi

0 comments on commit f1abc95

Please sign in to comment.