Skip to content

empty MYSQL_USERNAME is not possible #26

@Cougar

Description

@Cougar

MYSQL_USERNAME="${MYSQL_USERNAME:=-clustercheckuser}"

always sets MYSQL_USERNAME to "clustercheckuser" if it is missing or empty. This will add --user parameter here

if [[ -n "$MYSQL_USERNAME" ]]; then
EXTRA_ARGS="$EXTRA_ARGS --user=${MYSQL_USERNAME}"
fi

and with that it always overrides username in /etc/my.cnf.

The right expansion should be:

MYSQL_USERNAME="${MYSQL_USERNAME-clustercheckuser}"

Also look at #23 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions