From cdb4163aeb318ae9e4478804c5ea23fc079c0c5f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 7 Nov 2017 15:34:02 -0200 Subject: Password field rename to authentication_string in some implementations --- templates/setmysqlpass.sh.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb index 6e700f6..95946b0 100644 --- a/templates/setmysqlpass.sh.erb +++ b/templates/setmysqlpass.sh.erb @@ -9,9 +9,9 @@ DEFAULTS="/etc/mysql/debian.cnf" # Run /usr/bin/mysql --defaults-file=$DEFAULTS <('$PASSWORD') WHERE User='root' AND Host='localhost'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='::1'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='localhost'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='::1'; FLUSH PRIVILEGES; EOF -- cgit v1.2.3