Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow users not to use MYSQL_USER, MYSQL_USER_PWD and update README.md #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ to run in non-root mode. That way you only need to specify the
values at runtime and pass the `-u mysql` if need be. (run `id`
in your terminal to see your own `PUID`/`PGID` values.)

Configurations are located at `/etc/mysql` and the data at
Configurations are located at `/etc/my.cnf`, `/etc/my.cnf.d/*` and the data at
`/var/lib/mysql`. The default `my.cnf` is provided, replace the
file or rebind the whole directory with your configs. Otherwise
the environment variables `MYSQL_ROOT_PWD` `MYSQL_USER`
Expand Down
4 changes: 2 additions & 2 deletions root/etc/cont-init.d/10-setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# parameters
MYSQL_ROOT_PWD=${MYSQL_ROOT_PWD:-"mysqlrootpassword"}
MYSQL_USER=${MYSQL_USER:-"mysql"}
MYSQL_USER_PWD=${MYSQL_USER_PWD:-"mysqlpassword"}
MYSQL_USER=${MYSQL_USER}
MYSQL_USER_PWD=${MYSQL_USER_PWD}
MYSQL_USER_DB=${MYSQL_USER_DB:-"test"}

if [ ! -d "/run/mysqld" ]; then
Expand Down