Skip to content

Commit

Permalink
Rename docker_init_database_user to docker_setup_db_users
Browse files Browse the repository at this point in the history
  • Loading branch information
ltangvald authored and yosifkit committed Sep 18, 2019
1 parent dfa4cb4 commit 880bb34
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 @@ -212,7 +212,7 @@ docker_init_root_user() {
}

# Creates a custom database and user if specified
docker_init_database_user() {
docker_setup_db_users() {
if [ "$MYSQL_DATABASE" ]; then
mysql_note "Creating database ${MYSQL_DATABASE}"
echo "CREATE DATABASE IF NOT EXISTS \`$MYSQL_DATABASE\` ;" | "${mysql[@]}"
Expand Down Expand Up @@ -297,7 +297,7 @@ _main() {

mysql_write_password_file

docker_init_database_user
docker_setup_db_users

echo
for f in /docker-entrypoint-initdb.d/*; do
Expand Down

0 comments on commit 880bb34

Please sign in to comment.