handle_domain_on_webserver.sh: change default MySQL credentials.

This commit is contained in:
Christoph 2024-07-05 16:00:47 +02:00
parent 363e1176ff
commit 5ec756adec
2 changed files with 7 additions and 6 deletions

View File

@ -110,10 +110,11 @@ DNS_MASTER_SERVER=""
# - $ mysql --login-path=local ...
# -
# - Example
# - mysql_credential_args="--login-path=local"
# - mysql_credential_args="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
# - mysql_credential_args="--defaults-file=/usr/local/mysql/sys-maint.cnf"
# - MYSQL_CREDENTIAL_ARGS="--login-path=local"
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/usr/local/mysql/sys-maint.cnf"
# - MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"
# -
# - Defaults to '--login-path=local'
# - Defaults to '-u root -S /run/mysqld/mysqld.sock'
# -
#MYSQL_CREDENTIAL_ARGS="--login-path=local"
#MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"

View File

@ -207,7 +207,7 @@ if $delete_mode ; then
[[ -n "$SCRIPT_remove_master_domain" ]] || SCRIPT_remove_master_domain="/root/bin/bind/bind_remove_domain_on_master.sh"
[[ -n "$SCRIPT_remove_slave_domain" ]] || SCRIPT_remove_slave_domain="/root/bin/bind/bind_remove_domain_on_slave.sh"
[[ -n "$MYSQL_CREDENTIAL_ARGS" ]] || MYSQL_CREDENTIAL_ARGS="--login-path=local"
[[ -n "$MYSQL_CREDENTIAL_ARGS" ]] || MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"
fi